I am using Javascript API to embed tableau reports in my website. I want the default Tableau behaviour of it saving the filters of one dashboard in a workbook, while moving to another dashboard in the similar workbook.
For example:
If default date in a workbook is Jan-1 and I change it to Jan-2 in one of the dashboards, it should reflect in other dashboards in the same workbook. (In my embedded Tableau workbook!)
My code:
function initializeViz(url){
var placeholderDiv = document.getElementById("tableauViz");
var options = {
width: placeholderDiv.offsetWidth,
height: placeholderDiv.offsetHeight,
hideTabs: true,
hideToolbar: true,
onFirstInteractive: function () {
workbook = viz.getWorkbook();
activeSheet = workbook.getActiveSheet();
}
};
var x=url;
if(viz!=null){
viz.dispose();}
viz = new tableauSoftware.Viz(placeholderDiv, url, options);
}
P.S.
This is closest thing I could find: Saving and restoring current view state of a Tableau graph through javascript API
I tried to find to find solution/documentation here: http://documents.tips/documents/javascript-api.html
