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();
;
 
args.record(SampleTable);
 
mf = new menufunction(identifierstr(SampleActionMenuItem), MenuItemType::Action);
mf.run(args);
 
SampleTable_ds.research();
}

Below code in class/Job

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