Posts

Showing posts from 2015

Security on SysLookupMultiSelectCtrl

Image
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.