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);
});