2 Replies Latest reply on Mar 17, 2016 5:35 AM by Matthew Miller

    Forgot How to Switch Between Dashboards within a Workbook

    Stephen Hellyar

      Okay,

       

      I have one Viz and one workbook with two dashboards (1=Overview, 2=Alpha) in the workbook.  I want to use the function below, switch View(), to switch between dashboard 1 and dashboard 2 using an HTML button.  The button and associated onClick or onChange event is not an issue.  I know how to do this. 

       

      Here's the problem, the function can't find the dashboard (Alpha) if hide tabs is set to true. It says object can't be found.  It can find the dashboard (and switch to it) if hide tabs is set to false.  But, that defeats the whole purpose.  I don't want the tabs visible.

       

      function in JS:

       

         function switchView(SheetName){

             workbook.activateSheetAsync(SheetName);

          };

       

      onClick event

       

      onclick="switchView('Alpha')" 

       

      Message was edited by: Stephen Hellyar