Search This Blog

Friday 26 September 2014

Calling menu item through code with arguments in Microsoft Dynamics AX 2012

Below is the code for calling the menuitem with arguments:

MenuFunction menuFunction;
Args args = new Args();
args.record(CustTable);
menuFunction = new MenuFunction(menuitemDisplayStr(MzkCopyCustomer),MenuItemType::Display);
menuFunction.run(args);

Thanks

Muhammad Zahid.
 

No comments:

Post a Comment