Open form by code
FormRun formRun;
Args args = new Args();
;
args.name(formstr(CustTable));
args.record(CustTable::find("XYZ"));
formRun = ClassFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait();
open form by Menuitem
Args args = new Args();
;
args.record(CustTable::find("XYZ"));
new MenuFunction(MenuItemDisplayStr(CustTable),MenuItemType::Display).run(Args);
Comments