This post is machine-translated. The original post in german language can be found here.
These post applies to following versions:
Dynamics AX 2009, Dynamics AX 2012
Dynamics AX 2009, Dynamics AX 2012
|
|
|
|
|
|
|
This post is machine-translated. The original post in german language can be found here.
These post applies to following versions:
Dynamics AX 2009, Dynamics AX 2012
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.