Open Menuitem Through X++ in Ax 2012

Here is the code to open menu item through code in ax 2012.

void clicked()
{
    Args args = new Args();
    super();
    //args.record(dev_UserMapping);
    new MenuFunction(menuitemOutputStr(OutputMenuItemName), MenuItemType::Output).run(args);
} 

Related Posts

Thanks for comments.....

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer