Giving Security Permissions To Form IN AX 2012


I Have a Task Like I want to open the Form From Application window ,so that i created menu item and menus i placed it.

this form must not open when we open from AOT. For This Thing What We want to do?

Thanks & Regards,


In the init method of the form ,write the following code.

if(element.args().menuItemName() == ‘’)
throw error(“You are unauthorized”);

Note :- You can only use this for forms node in AOT but it can not be applied to Menu items node in AOT.