Monday, November 18, 2019

Open the form in Edit mode using x++

FormRun         formRun;
Args                 args;
MenuFunction  menuFunction;
args = new Args();
args.record(VendTable::find(‘1001’));
menuFunction = new MenuFunction(menuitemDisplayStr(VendTable), MenuItemType::Display);
if(menuFunction)
{
menuFunction.openMode(OpenMode::Edit);
formRun = menuFunction.create(args);
if(formRun)
formRun.run();
}

No comments:

Post a Comment