1 Reply Latest reply on Feb 11, 2015 2:09 PM by diego.medrano

    How to applyFilterAsync to a StoryPoint

    David Henrickson

      Applying filters to worksheets and dashboards works great; now having trouble getting this to work for story sheets.

       

      Rough example of code in onFirstInteractive:

       

      workbook = viz.getWorkbook();

      activeSheet = workbook.getActiveSheet();

       

      activeSP=activeSheet.getActiveStoryPoint();

      sheet0=activeSP.getContainedSheet();

       

      sheet0.applyFilterAsync("foo",myFooValue,tableauSoftware.FilterUpdateType.REPLACE)

        .then(function(foo) {

          done();

        },errorHandler);

       

      This function executes, and the .then function does run.  foo contains the filtername.  However, the filter isn't applied.

       

      Is there a way to accomplish this?