To call a modal form, the following code could be used (in clicked()-method of a button):
void clicked() { FormRun formRun; Args args = new Args(); super(); args.name(formStr(MyFormName)); args.record(SalesLine); formRun = classFactory::formRunClassOnClient(Args); formRun.init(); formRun.run(); If (!formRun.closed()) { formRun.wait(true); } }
Using this code, nearly every form could be opened in a modal way, so you have to close the form first before you will be able to return to AX.
To call a modal form, the following code could be used (in clicked()-method of a button):
Using this code, nearly every form could be opened in a modal way, so you have to close the form first before you will be able to return to AX.