By adding html meta tag we can refresh the whole dashboard.
To refresh a particular report in the dashboard,I used the following code.
Using this I call the report inside Iframe and refresh the frame periodically.
Go to Edit dashboard -> add text and enable HTML
Enter the below code in the text box (change the report path).
[script>
function refreshTheFrame()
{
parent.frames[0].location.href='http://localhost:9704/analytics/saw.dll?Go&Path=/shared/Sample/Test_report';
}
setInterval('refreshTheFrame()',"60000");
[/script>
[div>
[iframe frameborder="0" border=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 width=1200 height=600 scrolling=auto>
[/iframe>
[/div>
Note: In the code replace the [ with <
This code refreshes the report for every 1 min.
To refresh a particular report in the dashboard,I used the following code.
Using this I call the report inside Iframe and refresh the frame periodically.
Go to Edit dashboard -> add text and enable HTML
Enter the below code in the text box (change the report path).
[script>
function refreshTheFrame()
{
parent.frames[0].location.href='http://localhost:9704/analytics/saw.dll?Go&Path=/shared/Sample/Test_report';
}
setInterval('refreshTheFrame()',"60000");
[/script>
[div>
[iframe frameborder="0" border=0 marginwidth=0 marginheight=0 hspace=0 vspace=0 width=1200 height=600 scrolling=auto>
[/iframe>
[/div>
Note: In the code replace the [ with <
This code refreshes the report for every 1 min.
I tried using this code, works for 60 sec interval but doesn't work for 30 secs interval. Any idea why it doesn't work for less than a minute interval.
ReplyDeleteI tried using this code, works for 60 sec interval but doesn't work for 30 secs interval. Any idea why it doesn't work for less than a minute interval.
ReplyDelete