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)

How to get the name of current module (module which is open ) in AX?

(0) ShareShare
ReportReport
Posted on by 45

How to get the module which is currently open through X++ .

*This post is locked for comments

I have the same question (0)
  • MC08 Profile Picture
    170 on at
    RE: How to get the name of current module (module which is open ) in AX?

    Hi, you can refer to below post

    community.dynamics.com/.../183225

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: How to get the name of current module (module which is open ) in AX?

    There is no direct way to retrieve that information as far as I am aware. The only possible way I could imagine is if you hook in from the .Net namespace or through WinAPI handles to figure out what is in the MDI Children of the main AX window.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: How to get the name of current module (module which is open ) in AX?

    Acutally I have found a way. Create a job as per below:

    static void WIK_getCurrentModule(Args _args)

    {

       info(infolog.navPane().getSelectedNode().AOTparent().treeNodeName());

    }

    Add the job under Menu item > Actions and give it a label like "Get current module", and then add the menuitem to a Menu.

    When you open a new AX workspace and click your new menu item, it will tell you the module name.

    You cannot run this directly in code, since there will be no navigation pane associated with the current screen (your developer workspace).

  • Sarika Aravind Profile Picture
    45 on at
    RE: How to get the name of current module (module which is open ) in AX?

    Thank you for the suggestions. need to get the module name in a sub form .(clicking a button in main form opens sub form) -so it is not a menu item directly from AOT .

  • Shyam Mani Profile Picture
    331 on at
    RE: How to get the name of current module (module which is open ) in AX?

    If you want to see it in List Page :

    info(this.listPage().listPageArgs().parameters());

    Regards,

    SM

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