title: Interactive Grid - JavaScript getValue
body: <p>I’m struggling to obtain the new value that is being set in an editable Interactive Grid. I’ve created a dynamic action to be fired when the column has <em>changed</em>. The dynamic action is firing as expected, but it’s returning the previous value and not the value that triggered the event.</p>
  
  <p>The dynamic action is set to execute JavaScript:</p>
  
  <pre><code>var $te = $(this.triggeringElement);
  var rowID = $te.closest('tr').data('id');
  var grid = apex.region('IG_SCALE_1').call('getViews','grid');
  var model = grid.model;
  var record = model.getRecord(rowID);
  var column_val = model.getValue(record,”COLUMN_1”);
  
  apex.item(“P1_HIDDEN_1”).setValue(column_val);
  </code></pre>
  
  <p>Let’s say column_1 <em>had</em> a value of 0 and that value was changed to 1. The code is setting the hidden item’s value to 0. I need it to be set to 1.</p>
  
  <p>When I execute the following code I can see the old value in the array.</p>
  
  <pre><code>console.log(record);
  </code></pre>
  
  <p>Is there anything that I can do to obtain the new value?</p>
  
  <p>Many thanks.. let me know if you have any questions!</p>