Skip to main content
Solved

21R1 (Build 21.105.0023) - SOOrder_RowSelected Event is not executing

  • 29 September 2021
  • 2 replies
  • 149 views

vivekm
Varsity I
Forum|alt.badge.img

Hello Everyone,

I have extended Sales Order graph and override SOOrder_RowSelected even like below but it is not executing. Can someone help with the root cause or suggest a fix for this please.

Sample Event Code:

 protected virtual void SOOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected baseHandler)   
        {
            baseHandler?.Invoke(cache, e);

            SOOrder row = e.Row as SOOrder;
            if (row == null) return;           

            if (!string.IsNullOrEmpty(row.ShipTermsID) && 
                         (row.CuryLineTotal + row.CuryMiscTot + row.CuryTaxTotal) <= 49 && row.Status != SOOrderStatus.Completed && row.Status != SOOrderStatus.Invoiced)
                cache.RaiseExceptionHandling<SOOrder.curyOrderTotal>(row, row.CuryOrderTotal, new PXSetPropertyException(“Order Total is less then $49. Please review”, PXErrorLevel.Warning));            
        }

Best answer by Naveen Boga

Hi @vivekm  I have installed this build 21R1 (Build 21.105.0023) in my local machine. SOOrder_Rowselected is executing as expected. Please find the screenshot for reference.

Have you used e.Cancel = true anywhere in your code, which may stops the execution of events firing.

Also, have you tried checking having only this logic in your instance?

 

 

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
  • 3381 replies
  • Answer
  • September 29, 2021

Hi @vivekm  I have installed this build 21R1 (Build 21.105.0023) in my local machine. SOOrder_Rowselected is executing as expected. Please find the screenshot for reference.

Have you used e.Cancel = true anywhere in your code, which may stops the execution of events firing.

Also, have you tried checking having only this logic in your instance?

 

 


vivekm
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • 78 replies
  • September 30, 2021

Thanks @Naveen B for the details, let me check further without any other packages, actually the same code piece along with all other packages working fine in 19R2 build but sure will check further.


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