Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How can i get all menu items output name in ax2012

Posted on by

Hi,

How can i get all the output menu items name in ax2012 ? Is there any specific table which holds the menu item name and Ssrs report Id? Any idea

*This post is locked for comments

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,253 Super User 2024 Season 2 on at
    RE: How can i get all menu items output name in ax2012

    Hi Zohan,

    I don't know your exact requirement. You can also find all output menu items in the System table (view on the model database) called ModelElement. Then filter the record type field to show only OutputTool. This will only give a menu item output name, but not the SSRS report itself. To get that, you need to use Dictionary classes to read properties.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: How can i get all menu items output name in ax2012

    You can use the TreeNode class like shown in the blog. Why is it not ok for you?

    The below example is done by examining the blog post:

    static void listOutputMenuItems(Args _args)
    {
        #Properties
        #AOT
    
        TreeNode listNode, itemNode;
        TreeNodeIterator itemNodeIt;
             
        listNode = TreeNode::findNode(#MenuItemsOutputPath);     
        itemNodeIt = listNode.AOTiterator();
        itemNode = itemNodeIt.next();
    
        while (itemNode)
        {
            info(itemNode.AOTgetProperty(#PropertyName));
            itemNode.treeNodeRelease();
            itemNode = itemNodeIt.next();
        }
    }


  • Zohan Profile Picture
    Zohan on at
    RE: How can i get all menu items output name in ax2012

    Do you know any specific table or something else where system stores all the records of Output menu item? so i can get the name by looping all of them.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: How can i get all menu items output name in ax2012

    Like I said, you can use the information provided in the blog to achieve your goal. You need to:

    1) Iterate all Output menu items

    2) For each of them, check if it has Object type: SSRS Report or Object type: Class AND Object: "*Controller"

    3) If yes, write the menu item name to infolog

    At least that should get you quite close.

  • Zohan Profile Picture
    Zohan on at
    RE: How can i get all menu items output name in ax2012

    This is not i'm looking for. Actually i want to get the list of All menu items Output that are used for SSRS reports.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: How can i get all menu items output name in ax2012

    This blog should provide the information that you need: ronnyfch.wordpress.com/.../how-to-get-list-of-all-menu-items-at-ax-and-the-license-on-it

    The blog shows how to list all menu items that require some user license, but you should be able to use that information to fulfill your requirement. The important thing is that it shows you how to iterate through menu items, and how to inspect properties of the menu items in code.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans