Set the column value from page item by using JavaScript (Oracle APEX interactive grid)
I'm working with APEX 20.1 interactive grids and I'm using the following code to get the value from the item "P7_DATE" into the column 'ADDING_DATE'. var widget = apex.region('myIG').widget(); var grid = widget.interactiveGrid('getViews','grid'); var model = grid.model; model.forEach(function(r) { model.setValue(r,"ADDING_DATE",apex.item("P7_DATE").getValue()); }); I have two issues: This code only works for the first row; I have another column called 'code' and I need to add a condition that (if 'code' is not null then run the code above). Thank you for your help
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.