Enable/Disable is NOT working for Grid button

486 views Asked by At

In the Invoices screen, I have a new customized field on the Header and also added a new button on the Document Details tab above the grid.

Based on the Customized field condition we need to enable and disable the button. I have added this button as a toolbar button and added enable/disable conditions in ARInvoices row selected event but it is NOT working as expected. Can you please provide your thoughts on this?

Please find the screenshot for reference.

enter image description here

Thanks in Advance.

1

There are 1 answers

0
Robert Waite On

Naveen, I have found a section of the Framework documentation that has some description of what you are trying to accomplish. let me know if this helps? https://help-2020r2.acumatica.com/(W(1))/Help?ScreenId=ShowWiki&pageid=a0f8f9e9-7997-4325-bc69-b58039dd3699 So based on this it sounds link you need to "un-set" a DependsOnGrid as that is what is used to get the button to an inactive state when the grid is empty. It sounds like you are looking for the opposite.