Solved

How to set enable default action button?

  • 16 October 2023
  • 1 reply
  • 85 views

Userlevel 3
Badge

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?

icon

Best answer by jinin 16 October 2023, 16:09

View original

1 reply

Userlevel 7
Badge +11

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)

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved