Skip to main content

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));            
        }

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?

 

 


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