How to run a form modal

We wanted to ensure that when using a particular form in AX2009 client no other forms/reports are accessible until the form is closed.

For this we need to make the form a modal form.
We have an example of this in the standard application which can be copied, look at: Classes\SysModalFormDisableAllWkspcs.
This is used to make the Organize favourites form in AX modal (the name of that one is SysFavoritesOrganizeFavorites).

The way we achieve it is by starting the form like this:


If (!modalForm.closed())

Comments (2)

  1. Steeve says:

    It's not completly modal.  You can still select other Dynamics Ax window (from the task bar) and they will go on top of your "modal" window.  I've tried AlwaysOnTop and WindowType=Popup but no effect

  2. Petr Sehnal says:

    Great help, how easy things can go! Thx

Skip to main content