Notifications
Announcements
No record found.
hi friends,
how to set report menu item (menu path) access only one company not for all company. How to security for the report..........
*This post is locked for comments
Hi Rajesh,
Do you mean the same user should be able to see a report menu item (in the Area page of a module) in one company; but when he/she switches company, that user should not be able to see the same report menu item?
If above isn't correct, can you provide more details on your requirement?
Hi Lee thank u for your reply, i want same thing....how I get it.........
how to hide menu item in code.............pls help me........
Hi Guys.
You can easily assign roles per company in AX 2012. Navigate to System Administration -> Users -> Double click on the relevant user.
Select a role that the user is assigned to,
Click assign Assign Organisations
Click grant access to specific organisations individually
Check the companies you want to the user access to .
You may need to customise the roles to get exactly what you want.
Update: Sorry I didn't entirely understand your question, but you could still use this approach. Create a role with access to your menu-item and assign to to all users but only for a specific company. System admins will still see it in all companies, but thats the only exception I'm aware of.
The approach mentioned by Jonathan is correct. It is not possible to hide menu items using x++ coding.
If this company is the only one in a certain country, you can use the property CountryRegionCodes on the menu item to have it restriced for a certain country only.
You can get the same using x++.
if you are displaying the menu item on a form,
then you should write the following code in its init() method :
if( curext() == '_company') // _company is the specified company.
{
menuItemName.visible(true); // make sure that menuItemName AutoDeclaration YES
}
else
menuItemName.visible(false);
Thanks & Best Regards
Ram Challa
Hi Lee,
What you understood is perfectly right, even i have the same requirement as what Rajesh has the menu item should be visible for the user(Admin) in one company where in when he switches the company it shouldn't be visible, but as per my knowledge for an admin there is no such option if there is a way out can you please let me know?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2