title: Set the column value from page item by using JavaScript (Oracle APEX interactive grid)
body: <p>I'm working with APEX 20.1 interactive grids and I'm using the following code to get the value from the item &quot;P7_DATE&quot; into the column 'ADDING_DATE'.</p>
  <pre><code>var widget = apex.region('myIG').widget();
  var grid = widget.interactiveGrid('getViews','grid');
  var model = grid.model;
  model.forEach(function(r) {  
      model.setValue(r,&quot;ADDING_DATE&quot;,apex.item(&quot;P7_DATE&quot;).getValue());
  });
  </code></pre>
  <p>I have two issues:</p>
  <ol>
  <li>This code only works for the first row;</li>
  <li>I have another column called 'code' and I need to add a condition that (if 'code' is not null then run the code above).</li>
  </ol>
  <p>Thank you for your help</p>