Skip to main content
Answer

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

  • September 29, 2021
  • 2 replies
  • 160 views

vivekm
Varsity II
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?

 

 

2 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 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 II
Forum|alt.badge.img
  • Author
  • Varsity II
  • 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.