Dynamics AX Blog - Posts from March 2015
These posts are machine-translated.
Check access rights for MenuItem by codeIf you need to check the access rights of the current user for a MenuItem, the following snippet can give you an example. static void getMenuItemAccessRights(Args _args) { AccessRight accessRight = AccessRight::NoAccess; accessRight = SecurityRights::construct().menuItemAccessRight(SecurableType::MenuItemDisplay, menuitemDisplayStr(CustGroup)); info(strFmt("%1", accessRight)); } |
|
|
|
|
|
|
In have already described how you can integrate your own form as a dialog within the SysOperation framework. Meanwhile, I've encountered a much simpler version:
{
FormName ret;
ret = formStr(CopyOfSysOperationTemplateForm);
return ret;
}