I have a requirement to disable the OK button on the PurchEditLines form within AX. Does anyone know the permissions that control this button on the standard AX form. If so it would be greatly appreciated.
Thanks for the speedy response. Perhaps I should of been a bit more specific. I am required to disable the OK button for a specific user group within the PurchEditLine Form. Hope this helps clarify my requirement.
In that case you have to extend the code in my previous post. Something like this -
select firstOnly UserGroupList
where UserGroupList.userId == curuserid()
&& UserGroupList.groupId == ‘Admin’; // Change the group for whom you want to disable the button for
if (UserGroupList.RecId != 0)
{
//Write the code to disable the button mentioned in my earlier post
}
From what your saying it looks like the only way of acheiving this would be to apply code rather than use functionality within User Group Permissions functionality from the Admin Module. I was hoping to acheive this from here rather then applying code.
If anyone knows of how to achieve this from exisitng standard functionality then please let me know.
By default command buttons such as ‘OK’ will not have any security keys. You can assign a security key for this command button and then configure the access.
I am trying to disable the Action button “OK” when ever the Purchase Order Creation screen is loaded(in the form ‘PuchCreateFromSalesOrder’) . Only when user click “VALIDATE” button system should enable “OK” button.
I have set the Autodeclaration property of the ‘OK’ button to Yes
I am trying to add code in the ACTIVE method of the corresponding data source.But not getting it right…Could some one please help me.I am new to AX2012