Passing Arg from MenuItem to JOB/Class
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()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
void clicked()
{
//super();
MenuFunction menuFunction;
args args = new Args();
;
args.record(PurchRFQCaseTable);
menuFunction = new menufunction(identifierstr(RFQExport), MenuItemType::Action);
menuFunction.run(args);
PurchRFQCaseTable_ds.research(true);
}
|
Below code in class/Job
1
| PurchRFQCaseTable = _args.record(); |