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

D365FO Data management change tracking enable/disable not working

Displaying a value from a array field in EP

Table array field iteration