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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how to change IG record from an item and pk with JS

Samuel-HardyApr 5 2017 — edited Apr 5 2017

Hi,

I am on version 5.1.1.

 I have two fields one for the job\_number (primaryKey) and another for how long it has setback in hours (changed to mins for the IG).

Once the values have been validated I want to update the interactive grid column.

I am currently updating the column using

  var view = apex.region(tableId).widget().interactiveGrid("getViews", "grid"),

  model = view.model;

  var record = model.getRecord(primaryKey);

   var fieldKey = model.getFieldKey(columnID);

  record\[fieldKey\] = value;

I have also tried

model.setValue(record, columnID, value);

The value is insertedpopuplov.png

But when I save the IG the value is set to null. It does however, say changes saved in the top right.

Any help would be appreciated.

Thanks

This post has been answered by Samuel-Hardy on Apr 5 2017
Jump to Answer

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 3 2017
Added on Apr 5 2017
1 comment
496 views