Topic: Menu item for new record

I have posted the following on a different thread with another question, perhaps it's best to post on a new thread here


I have a menu item to launch Lookups form and this form uses MVD v3.1 tGrid with on grid edit only for adding new records.

showModal doesn't work. It needs newRecord action.

procedure MenuClick4 (Sender: string);
begin
     frmLookups.'NewRecord';
end;

the NewRecord in above script is not accepted. What's the correct action name for NewRecord please?

Adam
God... please help me become the person my dog thinks I am.

Re: Menu item for new record

I manage to solve out the issue by using a button for lookups with an action new record and updated the script as follows:

procedure MenuClick4 (Sender: string);
begin
     form1.btnLookups.click;
end;

I'd have preferred a direct syntax on menu item for new record. Perhaps it's not supported as yet until menu system implemented.

Adam
God... please help me become the person my dog thinks I am.

Re: Menu item for new record

In the current version you can use only button with action New Record for that.

Dmitry.