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();

Comments

Popular posts from this blog

D365: SSRS Report Development/ Customization

D365: X++ code to add custom lookup on worker to show specific workers team workers only

Error message when you log on to a Microsoft Dynamics AX 4.0 client: "You are not a recognized user of Microsoft Dynamics AX"