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!

javascript model.setValue is not saving data when updating an IG column

MVogelpoelJul 14 2021

I have a javascript function that updates the values of column on an IG table. It updates all the values with a sequence number.
Whenever I press the button ( Filltags ) , the column named 'TAGS" is updated, but when I press save the values are not saved to the table. For an example see:
https://apex.oracle.com/pls/apex/mvogelpoel/r/117626/testsave?session=7998295860252
username / password: demo/demodemo

If I manually modify the value of Tags, the data is saved, but not if I use the javascript.
If there were values in the "TAGS" column before pressing the button, its updated to null in the database after hitting save..
Can someone please explain to me why this is happening?

This is the javascript the button is calling
function add_sorting_ids2 () {
var sortering_nr = 0;
var model = apex.region("IG_ORDERS").widget().interactiveGrid("getViews", "grid").model;
model.forEach(function(record) {
sortering_nr++;
model.setValue(record, "TAGS", sortering_nr);
});

This post has been answered by MVogelpoel on Jul 14 2021
Jump to Answer
Comments
Post Details
Added on Jul 14 2021
1 comment
1,699 views