We can open a menu item in AX using code. For example we will open form "CustTable" wich called by menuitem display "CustTable" using X++. This is a job to it :
static void AXTutor_OpenMenuItem(Args _args)
{
CustTable custTable = CustTable::find("3010");
Args args = new args();
;
args.record(custTable);
new MenuFunction(MenuItemDisplayStr(CustTable),MenuItemType::Display).run(args);
}
0 comments:
Post a Comment