3 Replies Latest reply on Aug 23, 2016 8:39 AM by Tamas Foldi

    How to .initViz using most recently published worksheet

    Stephen Harle

      I am trying to initialize the most recently published workbook by default when a user comes to its web page.  Here is the code below I am using.



      $scope.initViz = function () {

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

              var url = vizUrl;

              var options = {

                  hideTabs: true,

                  hideToolbar: true,

                  onFirstInteractive: function () {

                      worksheet = viz.getWorkbook().getActiveSheet();

                      // $scope.initParameters();





      Rather than vizURL using an exact link I need it to be dynamic with time so the most recently published workbook from the server is shown in the viz.  Appreciate any help.