0
votes

I have a Tableau workbook with 4 dashboards, each dashboard in turn has many worksheets. I'm embedding one dashboard in a Web Application using Tableau JavaScript API.

I can get the current dashboard object using the following code.

viz.getWorkbook().getActiveSheet();

How can I get the other 3 dashboard objects?

1

1 Answers

0
votes

Here is Tableau's example that will return your viz based on the hosted URL.

<div id="vizContainer"></div>     

function initViz() {
   var containerDiv = document.getElementById("vizContainer"),
   url = "https://YOUR-SERVER/views/YOUR-VISUALIZATION";

   var viz = new tableau.Viz(containerDiv, url); 
}

initViz();

found here