Skip to content

Passing Arg from MenuItem to JOB/Class

To pass args from MenuItem to desired Class/Job :

On MenuItem Button properties give the Datasource Name of which your desired arguments haveĀ 

Write Below code on MenuItem Clicked()

void clicked()
// super();
MenuFunction mf;
args args = new Args();
mf = new menufunction(identifierstr(SampleActionMenuItem), MenuItemType::Action);;

Below code in class/Job

1sampleTable = _args.record();
Published inForm customization techTechnical Blog