1 Reply Latest reply on May 26, 2017 9:01 AM by Patrick A Van Der Hyde

    How can I use 2 different aync functions?

    Joji Hori

      I need to use activateStoryPointAsync to set story index and after story displayed, I need to use changeParameterValueAsync to set a filter value.

      Can I do like the following?

      --------------------------------------------------

        var options = {

          width: [% bi_detail_width %],

          height: [% bi_detail_height %],

          hideTabs: true,

          hideToolbar: false,

          toolbarPosition: 'top',

          onFirstInteractive: function () {

            workbook = viz.getWorkbook();

            activeSheet = workbook.getActiveSheet();

            workbook.activateStoryPointAsync(2);

            workbook.changeParameterValueAsync('Select Condition Id', condition_id);

          }

        };

        viz = new tableau.Viz(placeholderDiv, url, options);

      }

      --------------------------------------------------