Automatic switching between dashboards

This article explains how to automatically switch between dashboards every predetermined amount of time. This might come useful, when you have multiple dashboards that you want to be presented in a cycle on a monitor to reflect updated data\records. Take a look at the video example below: 
Please follow the instructions below to set up automatic rotation between dashboards: 
  1. Create a dedicated user (Consumer) that will be used for presenting the dashboards.
  2. Republish all the relevant dashboards to the consumer user
  3. Edit script for every dashboard and add the following script:

Change the variables d,t and u:
d - the url of next dashboard in the queue
t - the amount of time that the current dashboard will be displayed (in milliseconds)
u - the user that is used with the auto cycle
1
2
3
4
5
6
7
8
9
10
11
12
13
dashboard.on('refreshend', function(se, ev) {

var d = 'http://localhost:8081/app/main#/dashboards/5558943e17c636a410000009'; /* URL for next dashboard to be loaded */ 
var t = 3000 /* Milliseceonds until switching to the next dashboard */ 
var u = 'consumer@gmail.com' /* The designated user for the auto cycle */

if (prism.user.userName == u) { 
setTimeout(function() { 
window.top.location = d; 
}, t) 
}

})
4. Login to Sisense with the designated user and open one of the dashboards to check the change is working.