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

  • 29 September 2021
  • 2 replies

Userlevel 4

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 29 September 2021, 19:02

View original

2 replies

Userlevel 7
Badge +19

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?



Userlevel 4

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.


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved