Skip to main content
Question

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

  • Jun 22, 2022 6:10 AM UTC
  • 4 replies
  • 373 views
  • Translate All

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+20
  • Captain II
  • Jun 22, 2022 7:03 AM UTC

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
        }

 

Translate

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Jun 23, 2022 5:39 AM UTC

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

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Jun 23, 2022 6:56 AM UTC

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

 

Translate

Forum|alt.badge.img+1
  • Semi-Pro III
  • Dec 14, 2023 2:48 PM UTC

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.

Translate