Contents tagged with PXToolBarButton Button in grid of Acumatica

  • Add button to grid in Acumatica

    Hello everybody,

    today I want briefly share how to add button to Grid in Acumatica. Actually button without any dialogs. Just button with posibility to run C# code.

    Lets say you have grid, and want name for button Calculate. 

    Then in graph you should write something like this:

    public PXAction<PRPayroll> Calculate;


    [PXUIField(DisplayName = "Calculate")]

    public virtual IEnumerable calculate(PXAdapter adapter)


    return adapter.Get();


    And in grid something like this:

    <ActionBar ActionsText="True">



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


    </px:PXToolBarButton> … more