eric.lacaille wrote:
when user create new part revision, i would like to set a CF to “A Value” or “B value” depends on revision number (eng_chgt_level).
Actually, i do it by an event and a background job but users have to refresh the screen to see value affected.
An another option is to do it by an Oracle Trigger BEFORE INSERT by it is not a IFS “best practice”.
What is the best way to set and display default value on screen while you’re typing data of a new record ?
Have run into the same query myself, and I think how you have implemented is probably the safest and maybe the only way to get it working. Maybe add the procedure to a very fast queue that gets executed at a shorter interval.
The SQL expressions and context substitution variable are not useful in this instance as they can’t see the values on the columns.
Perhaps, just perhaps, you can get away with not using a bg job by using an autonomous transaction? Updating a row while inserting to it is always tricky, but there are times that using autonomous transaction has got the job done.
https://www.oreilly.com/library/view/oracle-plsql-programming/9780596805401/ch14s03.html