Skip to main content
Solved

Enable/Disable is NOT working for Grid button

  • October 9, 2020
  • 3 replies
  • 1286 views

Naveen Boga
Captain II
Forum|alt.badge.img+19

In the Invoices screen, I have a new customized field on the Header section 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 in .aspx page and also 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.

Best answer by Naveen Boga

Hi Team,

Thanks a lot for the suggestions.

I have identified this issue and working as expected now based on the Sales Type conditional.
 

<px:PXToolBarButton Text="Add Bill Line" DependOnGrid="grid">
<AutoCallBack Command="AddBillLine" Target="ds" />
</px:PXToolBarButton>

Best Regards,

Naveen B
 

View original
Did this topic help you find an answer to your question?

3 replies

Nayan Mansinha
Community Manager
Forum|alt.badge.img+2
  • Acumatica Developer Support
  • 49 replies
  • October 13, 2020

Button is on the grid’s toolbar so one must use RowSelected event of grid’s DAC to control its UI. And make sure you have Commit = True on Sale Type so it will help refresh the grid’s UI.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Author
  • Captain II
  • 3407 replies
  • October 14, 2020

Yes Nayan, We have added CommitChanges =”true” still it is NOT working this grid toolbar button :(


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Author
  • Captain II
  • 3407 replies
  • Answer
  • October 19, 2020

Hi Team,

Thanks a lot for the suggestions.

I have identified this issue and working as expected now based on the Sales Type conditional.
 

<px:PXToolBarButton Text="Add Bill Line" DependOnGrid="grid">
<AutoCallBack Command="AddBillLine" Target="ds" />
</px:PXToolBarButton>

Best Regards,

Naveen B
 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings