title: Refresh a region's items during/after apexrefresh
body: <p>I have a Report region that I am refreshing via jQuery. I have the following code with the region footer to set up the refresh process:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var refreshId = setInterval(function(){ apex.jQuery('##REGION_ID#').trigger('apexrefresh');
  }, 5000);
  &lt;/script&gt;
  </code></pre>
  
  <p>This works correctly, and the report data is refreshed every 5 seconds. However, the region also contains an Item, whose source value is determined via a SQL Query. I want this value to refresh every time the report region data refreshes too, but the triggered refresh doesn't do this. </p>
  
  <p>Looking closer, it seems the report region <code>div</code> does not contain the Item HTML, so the part of the DOM that gets swapped out during the refresh does not contain the item. The item appears inside a sibling table node called <code>apex_layout_#REGION_ID#</code>:</p>
  
  <pre><code>&lt;div class="rc-content-main"&gt;
      &lt;table id="apex_layout_7017903473906209" class="formlayout" border="0" summary=""&gt;
      &lt;div id="report_7017903473906209_catch"&gt;
      &lt;script type="text/javascript"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've tried doing an additional <code>.trigger()</code> call passing in the Item's ID instead of <code>#REGION_ID#</code> but confusingly this does the exact same refresh of the report data. I've also tried setting up a Dynamic Action to fire on "After Refresh" on the region that will refresh the Item, but this does something strange too - it fires repeated AJAX calls with no delay and doesn't change the item value.</p>
  
  <p>Any help appreciated.</p>