Solved

How to execute custom logic in extension graph after Process or ProcessAll button functionality completed


Userlevel 3
Badge +1

Hi Everyone

I have created ServiceContractInqExt graph like below:

 public class SSPServiceContractInqExt : PXGraphExtension<ServiceContractInq>
    {…

      //How can I call base functionality of process or processALL

      // Need to execute custom logic here

..}

 

 

icon

Best answer by Naveen Boga 1 July 2022, 14:24

View original

2 replies

Userlevel 7
Badge +17

Hi @ShahidaValiSyed04  You can try like below.

 

 public class ProductManualExtension : PXGraphExtension<ProductManual>
{

public override void Initialize()
{
Base.VIEWNAME.SetProcessDelegate(
delegate (List<DACNAME> list)
{
ImportRecords(list, Base.Filter.Current);
});
}

public void ImportRecords(List<DACNAME> list, ImportProductFilter currentFilter)

{

//Logic here

}

 

Userlevel 3
Badge +1

Hi @Naveen Boga 

How can I save another DAC records inside the ImportRecords Method?

public void ImportRecords(List<DACNAME> list, ImportProductFilter currentFilter)

{

        //Another / some DAC record Save logic here

}

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