Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting value on triggering field in IG

Scott WesleyFeb 7 2022

Hi,
I was wondering how if may be possible to update the current cell in a grid based on what the user typed. Let's say I wanted to convert '123' to '000123'.
In a dynamic action based on a standard page item, this could be a SetValue action, using a PL/SQL LPAD expression, suppressing the change event as to avoid an infinite loop.
image.pngWith IG, a SetValue action can be used to set another column. But if the suppress change event is set, then the new value doesn't even get applied.
image.pngSo if a SetValue action is set to the current cell, it will either not update, or it will constantly trigger itself over & over.
It appears possible to safely update the triggering cell using the JavaScript described in this post. ie, a change event on JOB could ultimately run the following
model.setValue(record,"JOB",'Astronaut');
But how could I source this value from PL/SQL?

Comments
Post Details
Added on Feb 7 2022
3 comments
3,918 views