Skip to Main Content


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

Samuel-HardyApr 5 2017 — edited Apr 5 2017


    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.


This post has been answered by Samuel-Hardy on Apr 5 2017
Jump to Answer
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