Skip to main content

Notifications

Announcements

No record found.

Dynamics AX 2012 Menu Traverser

Sohaib Cheema Profile Picture Sohaib Cheema 46,610 User Group Leader

If it is required to see how many time a specific menu item, is being used and at how many locations with respect to navigation of Dynamics AX Rich Client. This can be done by traversing AOT menu. I were asked, a question on community, that end user want to know “at which locations in system a menu item of a form is being used in rich client”. Obviously this can been seen by tools such as SDT (Security Development Tool). In SDT you need to select a privilege or Role.

 

But a user might be interested to know such information on a click by providing name of a menu item. As every end user may not have access of SDT, because of any reason. e.g. if its a production system, or someone is not using SDT etc.

 

Let’s suppose a user wants to know, at how many locations in Rich Client, CustTableListPage is being used.

To get such information, I wrote a class, which is doing nothing special by traversing menus of AOT using TreeNode.

 

I have uploaded it source code and XPO on CodePlex. You can download it if you are interested.

 

To use this code, you need to run a display menu item, which is avaible inside XPO.

 0.png

You can List of all display menu items, which are available in AOT.

8816.1.png

 

You may filter and choose a specific menu item.

5344.2.png 

After choosing a menu item, from lookup, click Ok. It will give you list of all those location where this display menu items exists in Rich Client.

4606.3.png

7411.4.png

 

Note that there are few minor waning in source code regarding best practice such as label not being used, instead hard coded text message is being used in info messages. Etc. So, if you want to deploy code on production, you may spend few minutes to clean those best practices.

Comments

*This post is locked for comments