Contents tagged with Enable disable toolbar button PXToolBarButton in acumatica

  • Enable disable button of grid or PXToolBarButton, which depends from value of column in Acumatica

    Hello everybody.

    My next notice is about following case. 

    Suppose you have from PR301000, which has grid with id "grid" with button calculate. Also grid has column, which is bounded to column caculated, and you need the following:

    If in selected row field "Calculated" is true, then disable button Calculate. If in selected row field "Calculated" is unchecked, then enable button calculate. 

    In order to implement this following should be implemented:

    1. In grid at page pr301000:

            <ActionBar ActionsText="True">


                    <px:PXToolBarButton Text="Calculate" DependOnGrid="grid" StateColumn="Calculated">

       <AutoCallBack Command="Calculate" Target="ds" > … more