Skip to main content
Question

Override Release action on "Sales Price Worksheets" Screen (AR202010)


Forum|alt.badge.img

Hi Team,

I'm trying override the "Release" action on "Sales Price Worksheets" Screen, since i need to insert the newly customized field value on "Sales Price" screen. Usually i execute the base method and then insert the values. but here the main problem is i couldn't find any relationship between "ARPriceWorksheetDetail" and "ARSalesPrice"

Please let me know how i can handle this situation.

 

 

 

 

 

 

Regards,

Ramya Krishna

4 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3381 replies
  • June 22, 2022

Hi, @ramya15  When we RELEASE the Sales Price Worksheet, the system will go update the insert the records in the ARSalesPrice table OR update the records if Stocks already exist.

 

The RELEASE action code is part of the below method so that you can override this method add your logic.

 

//This code is from 21 R1 version

        [PXOverride]
        public virtual void ReleaseWorksheetImpl(ARPriceWorksheet priceWorksheet)
        {

              // Logic here
        }

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 59 replies
  • June 23, 2022

Hi @Naveen Boga,

Sorry, Im not getting a idea here, without any link how am i going to update or insert data from this screen. Could you please guide me on this.

 

Regards,

Ramya


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3381 replies
  • June 23, 2022

Hi @ramya15 , There are a couple of conditions we need to check before updating the prices in the ARSalesPrice screen.

If you can look at the below methods, you can able to identify the fields that you need to consider for the update the prices.

 

ARSalesPriceWorksheetMaint.cs

 


Forum|alt.badge.img+1
  • Semi-Pro III
  • 76 replies
  • December 14, 2023
Naveen Boga wrote:

Hi, @ramya15  When we RELEASE the Sales Price Worksheet, the system will go update the insert the records in the ARSalesPrice table OR update the records if Stocks already exist.

 

The RELEASE action code is part of the below method so that you can override this method add your logic.

 

//This code is from 21 R1 version

        [PXOverride]
        public virtual void ReleaseWorksheetImpl(ARPriceWorksheet priceWorksheet)
        {

              // Logic here
        }

 

Hi Naveen,

I am using this technique myself added my own logic and it’s working.

However, I have a question because it’s not obvious to me: how does the base ReleaseWorksheetImpl run without calling:

Base.ReleaseWorksheetImpl(priceWorksheet);

If I call the base I get a stack exception but I can’t see how this is being recursively called.


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