Hi everybody,
I want to enable/disable a MenuItemButton based on the Edit Button (Represented with a pencil) of the Action Pane in AX 2012
I tried setting the initial value of the enabled property to false and in the clicked method of the edit button change it to the opposite value, but it will just work if the form is open in non edit mode. But in some forms like CustTable it could happen that the initial status could be the edit mode if you open it from CustTableListPage clicking its edit button.
How can I do that?
Thanks!
Hi,
just check the viewMode of the form
if(element.inViewmode() == true)
{
enable or disable the button
}
Hi,
http://msdn.microsoft.com/en-us/library/cc570334.aspx
This link wil help you
Regards,
EnriqueKevin
Hi,
http://msdn.microsoft.com/en-us/library/cc570334.aspx
This link wil help you
Regards,
EnriqueKevin
Do you want do this for ALL edit button in ax?
If you need to change some form only, you could think to use security.