2 Replies Latest reply on Oct 24, 2017 4:06 AM by skk k

    Show containerDiv only after applied filter .

    skk k

      I am trying to get the dashboard from tableau by passing 3 Lakh patientid using applyFilterAsync (POST)  as it did not worked directly using options (uses GET) due to data limitation (1024 character) . So using  onFirstInteractive callback i am able to do . But the problem is - In continerDiv , the actual dashboard gets loaded first and after few second the dashboard with those 3Lakh patientid gets loaded. And i actually want those 3L patient id to be laoded directly.

      Is there any possible way to achieve it?



      var containerDiv = document.getElementById("vizContainer"),

      options = {

                      "Patient Id":"" ,

                      hideTabs: true,


                     onFirstInteractive: function () {

                                    var sheet = viz.getWorkbook().getActiveSheet();

                                    sheet.applyFilterAsync("Patient Id",[3 Lakh patientid], tableau.FilterUpdateType.REPLACE);

                                     //After applying filters make containerDiv vizible inorder to render directly the filtered sheet(vizualzation) and not the vizualization returned by    viz = new tableau.Viz(containerDiv, url, options);




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

      //Hide containerDiv