Refresh Data in the HTML Page for Embedded Oracle Analytics Content

In the HTML page where you're embedding Oracle Analytics content, you can specify how to refresh the embedded workbook's data.

To refresh data without reloading a workbook, the refreshData function is attached to all <oracle-dv> elements. Invoking it forces all visualizations under that element to refresh.

This is the code to refresh data for a single embedded workbook. In this code, all instances of project refer to workbook.

<oracle-dv id="project1" project-path="{{projectPath}}">
</oracle-dv>
 
<script> 
   function refreshProject() {
      $('#project1')
  [0].refreshData();
}
</script>

This is the code to refresh data for multiple embedded workbooks. In this code, all instances of project refer to workbook.


<script> 
   function refreshProject()
   {
      $('oracle-dv').each(function() {
         this.refreshData();
         });
}
</script>