From July 9th till 13th we will be at #MSInspire. See you there!

Daily Archives: March 14, 2014


Dynamics AX 2012 Tips And Tricks : Calling MenuItem through Code in Dynamics AX 2012

14

Mar 2014

Dynamics 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