Any help is highly appreciated.
I have a non-public Tableau Dashboard that I load through aspx file, which supplies the required authentication, username and password, and allows the site visitor to view the tableau on the website, with the ticket it receives.
So, now, I want the Tableau to load on the website with filters already applied through the Javascript API.
Or, how can I use the "onFirstInteractive" option of the Javascript? The problem is I don't need to use the Javascript API to load the Tableau but just need it to apply filters on the Dashboard.
function tableauFilter (){
var placeholderDiv = document.getElementById("viz2"); // Don't need this
var url = "https://public.tableau.com/views/Test_1228/Dashboard1" // Don't need this either
var options = {
onFirstInteractive : function(FilterName,Value){ //This is what I want to be able to use
activesheet = viz.getWorkbook().getActiveSheet();
Any help is highly appreciated.
I would have to test this out myself for confidence, but I'm fairly sure that the Javascript API can only be used to apply filters to a dashboard that has been loaded using the Javascript API.