Security on SysLookupMultiSelectCtrl

To control security on a SysLookupMultiSelectCtrl in AX 2012 use the following code to check the access to the form. 

AccessRight ar; 
ar = SecurityRights::newUser(curUserId()).menuItemAccessRight(SecurableType::MenuItemDisplay,menuitemDisplayStr(VendDirPartyContactInfoAdvanced));

This is a problem in AX 2012 in for example the following menu items when you build custom security to give view only access. 

This is an example of the control, as is shown that Purpose field can still be edited even if the menu item only gives view acces. 






Comments

Popular posts from this blog

How to disable auto enabled flight key using KillSwitch

Technical intro to Feature management in D365FO

Continuous integration and deployment Power platform FinOps tweaking