AX 2012: How to open a form in X++
Views (25921)
Using FormRun:
void clicked()
{
Args args;
FormRun formRun;
args = new Args(formstr(CustTable));
args.record(custTableLocal);
formRun = classFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait();
formRun.detach();
CustTable_DS.research();
}
Using MenuFunction:
void clicked()
{
Args args;
args = new Args();
args.caller(this);
args.parmObject(list);
new MenuFunction(menuItemDisplayStr(SalesTable), MenuItemType::Display).run(args);
}
This was originally posted here.

Like
Report
*This post is locked for comments