I'm using apex 20.1 and universal theme.
I have a page with IG like below where if user changes the qty/uni cost and Ext Cost, it needs to do a computation.
Example if ext cost is changed to 1000 and the qty = 20, the DA need to modify the uni cost = ext cost / qty.
For this I created a JS DA using apex.server.process.
On the DA, I'm using below to set the value, since this is IG I put a static ID of IG_COLUMN_NAME = IG_UNIT_COST.
apex.item(gReturn.items\[i\].name).setValue(gReturn.items\[i\].value,'',true);
If I just use a STD JS and run the apex.item it works fine, I can see my unit cost changing to a computed value.
My issue is since I'm using apex.server is async, IG completes the validation moves to the next record and my ajax call runs afterwards.
Is there a way in JS to stop the execution or basically fail the validation so the IG row DO NOT move and you can still change the item value?
Thanks
