In the Sales Order screen, I want to take an Inventory ID value that the user has entered, say, “APPLE”. I want to look for that value in another table and possibly replace the value of APPLE with some other value.
I have tried changing e.NewValue in a FieldVerifying event.
A very simple version of my code is here and AMCOTTON is an existing inventory item. So, in testing this I hoped that it would but AMCOTTON into that field regardless of what I entered.
protected void SOLine_InventoryID_FieldVerifying(PXCache cache, PXFieldVerifyingEventArgs e, PXFieldVerifying InvokeBaseHandler)
e.NewValue = "AMCOTTON";
if (InvokeBaseHandler != null)
However, I end up with a blank field value.
Is FieldVerifying the right event to make changes to e.NewValue?
Best answer by DjangoView original