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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Lock parent form during dialog popup

(0) ShareShare
ReportReport
Posted on by 150

Hello,

I am trying to force the user to respond to a popup dialog(RunBase) form when changing the the SalesPrice on the salesLine. 

I have set the dialog prompt to Popup using:

dialog.formBuildDesign().windowType(FormWindowType::PopUp);

This would keep the dialog on top, but the user can still disregard the popup or navigate away from the record

Is there a way to lock the parent form till the user respond to the popup?

Thanks for nay help.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,992 Most Valuable Professional on at

    If you call FormRun.wait(true), the form will be modal, i.e. users won't be able to work with any other form.

    To use it, you have to open the form from code like this:

    FormRun fr = classFactory.formRunClass(new Args(formStr(YourModalForm)));
    fr.init();
    fr.run();
    fr.wait(true);

    Or you can extend the Dialog class (run() method) to support the same behavior.

  • Suggested answer
    cowboyott Profile Picture
    204 on at

    Rather than extending the dialog class, you could just use the Dialog.parmIsModal() method. Here is an example: timsaxgrind.blogspot.com/.../making-dialog-form-stay-on-top.html

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans