Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Tuesday, May 13, 2014

Parent shold not be closed unless child form is closed in Dynamic AX

Hi,

// you are writting on formA parent form
Args args;
FormRun formRun;
;
super();
args = new Args(formstr(FormB)); // FormB is child form
args.caller(element);

formRun = classFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait(); // this waits till child closes, unless child closes u cant close parent/ current form
formRun.detach(); // this will not wait for child form to close..

Regards,

No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...