Hi, i have some problem to get value from old value data, anyone have an idea ?
example, new SO have qty = 65 after save user edited value qty in SO become 50. i want to get value qty SO = 65.
or, how to implement query limit = 1 in acumatica ?
Hi, i have some problem to get value from old value data, anyone have an idea ?
example, new SO have qty = 65 after save user edited value qty in SO become 50. i want to get value qty SO = 65.
or, how to implement query limit = 1 in acumatica ?
Best answer by Naveen Boga
Hi
Please find the sample code for your reference.
protected virtual void SOLine_OrderQty_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
{
SOLine row = e.Row as SOLine;
if (row != null)
{
if (row.OrderQty != Convert.ToDecimal(e.OldValue))
{
// Add Logic
}
else
{
// Add Logic
}
}
}
protected virtual void SOLine_RowUpdated(PXCache cache, PXRowUpdatedEventArgs e, PXRowUpdated InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
SOLine newRow = e.Row as SOLine;
if (newRow != null)
{
SOLine oldRow = (SOLine)e.OldRow;
if (newRow.OrderQty != oldRow.OrderQty)
{
// Add Logic
}
else
{
//Add Logic
}
}
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.