web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Issue with, closing Form A after call Form B

(0) ShareShare
ReportReport
Posted on by 380


The issue description is:

From Form A, I call to Form B and I want close Form A for avoid that user close the Form B and watch the Form A again.

My code is the following:


public void clicked() { // form reference and args FormRun formRun; Args args = new Args(); // Form args.name(formStr(PWIntegrationForm)); // Parm args.parm(int642Str(fileStatusTable.RecId)); // Open form formRun = ClassFactory.formRunClass(args); formRun.init(); formRun.run(); formRun.detach(); element.close(); }

When run, Form A call to Form B and It is opened, but quickly all is closed.

Any idea because this code not working?

Thanks.

*This post is locked for comments

I have the same question (0)
  • drodmarin Profile Picture
    380 on at
    RE: Issue with, closing Form A after call Form B

    MenuFunction.Detach() is not Available

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans