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" >

And you'll get in your grid nice button Calculate. Enjoy

No Comments

Add a Comment