Skip to main content
Answer

How to set enable default action button?

  • October 16, 2023
  • 1 reply
  • 317 views

Forum|alt.badge.img

Hello,

I want to enable the button “Enter AP Bill” which associate with action CreateAPInvoice on Purchase Orders screen

by implementing Event handler Row_Selected as following:

protected void POOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
if (InvokeBaseHandler != null)
InvokeBaseHandler(cache, e);
var row = (POOrder)e.Row;
if (row != null)
{
if (row.Status == POOrderStatus.Hold)
{
Base.createAPInvoice.SetEnabled(true);
}
}
}

but it doesn’t working.

Do you have any suggestion?

Best answer by jinin

Hi @mrthanhkhoi,

You can enable the action based on the workflow. 

Refer the below link,

Activate specific button even in closed invoice | Community (acumatica.com)

1 reply

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • Answer
  • October 16, 2023

Hi @mrthanhkhoi,

You can enable the action based on the workflow. 

Refer the below link,

Activate specific button even in closed invoice | Community (acumatica.com)