Having some trouble with a dynamically launched form.
I have developed a Form that I am using as a FormPart.
There is a MenuItemButton where I override clicked() and call the form using a MenuFunction
Args args = new Args();
args.record(smmActivities);
args.caller(this);
new MenuFunction(menuitemDisplayStr(MyCustomFormMenuItemName), MenuItemType::Display).run(args);
I am already calling the same code above from a different regular form and it has been working fine.
However, when I use the Form containing the FormPart to open it and then close the Parent form that contains the Fact pane first, the child form that launched from the code will not close or it crashes the Client.
If I close the child form first there is no problem. It is only a problem when I close the Parent form first before attempting to close the child form.
No error messages are visible.
This is my first form part so I am wondering if I have done something wrong there but everything else is working as expected.