title: Oracle Apex Interactive Grid - loop on selected rows after button click event
body: <p>I have Interactive Grid named InterfaceGrid, with many columns, but currently I  consider only this two: ID as text, and Value as select list.
  I would like to select few rows (by checkboxes from left grid site), and - after clicking new button - UpdateButton - perform action looping selected items.</p>
  <p>I tried some code, but how to loop on selected rows? As I undestand, I can not use this.data.selectedRecords while fire event from button, not grid event, and I must somehow loop over model variable?</p>
  <pre><code>var model = apex.region(&quot;InterfaceGrid&quot;).widget().interactiveGrid(&quot;getViews&quot;, &quot;grid&quot;).model;
  
  var id;
  var value;
  
  if(this.data != null){
      for ( i = 0; i &lt; this.data.selectedRecords.length; i++ ) { 
      if(this.data.selectedRecords[i]!= null){
          product_wizard_code= model.getValue(this.data.selectedRecords[i],&quot;ID&quot;);
          value= model.getValue(this.data.selectedRecords[i],&quot;VALUE&quot;).v;
      }
      }
  }
  console.log(id);
  console.log(value);
  </code></pre>
  <p>Can someone advice me?</p>