3 Replies Latest reply on May 29, 2017 2:19 AM by Maciek La

    Get active filters on a view using JavaScript

    Marco Compagnoni

      Hi everyone,

       

      I am trying to get active filters on a view using javascript API tableau-2.min.js.

      My Tableau Server is version 10.1.4.

       

      The problem is the function getFiltersAsync() doesn't work.. this is the code I am using:

       

      viz.getWorkbook().activateSheetAsync("Business").then(function(sheet) {

        worksheet = sheet;

        worksheet.getFiltersAsync().then(onSuccess, onError);

      });

       

      The error I get:

      Uncaught TypeError: worksheet.getFiltersAsync is not a function

       

      Any suggestion is welcome,

      thank you!

       

      Marco