14
Mar 2014Dynamics AX 2012 Tips And Tricks : Calling MenuItem through Code in Dynamics AX 2012
Calling MenuItem through Code in Dynamics AX 2012 Tips and Tricks We often need to execute menu items from X+. Menu Items are represented by the MenuFunction class. Below is a code sample that depicts how to run Menu Items through code. MenuFunction menuFunction = new MenuFunction(menuitemdisplaystr(MENUITEM), MenuItemType::Display); Args args = new Args(); args.caller(element); args.record(DS); menuFunction.run(args); Of course the code above may be changed to...
Read More