Skip to main content
Solved

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


Forum|alt.badge.img+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

..}

 

 

Best answer by Naveen Boga

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

}

 

View original
Did this topic help you find an answer to your question?

2 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3410 replies
  • Answer
  • July 1, 2022

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

}

 


Forum|alt.badge.img+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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings