Refresh dashboard with script

Refresh dashboard with script

book

Article ID: KB0076393

calendar_today

Updated On:

Products Versions
Spotfire Server All

Description

In some some situations it is required to have a Spotfire dashboard open on a monitor without any user interacting with it just to display desired data. The user might be logged off if there is some internal timeout or if the inactivityTimeout is reached (the length of time that an analysis session can be alive when no user activity has been detected, excluding pings). 

Issue/Introduction

How to refresh dashboard with script in browser to make sure it stays open

Resolution

When logging on to Spotfire tick the checkbox "Keep me logged in", the checkbox works best with Microsoft Internet Explorer.

If the browser refresh frequency is set to less than the default value of inactivityTimeout (2 hours) then there is no need to modify service configuration files for the Web Player where the dashboard is going to be routed.

Example of script to reload browser every 25 minutes:
<!DOCTYPE html>
<html>
   <head>
      <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
      <script>
         <!-- Will make the browser reload the page once every 20 minutes -->
         setInterval(function () {
            location.reload();
         }, 1000 * 60 * 20 * 1);
      </script>
   </head>
   <body>
      <iframe src="link to your dashboard" width="1600" height="1000"></iframe>
   </body>
</html>

 

Additional Information

Doc: TIBCO Spotfire Server 10.3 Installation and Administration Manual - Spotfire.Dxp.Worker.Web.config file - inactivityTimeout