You need to sign in to do that
Don't have an account?
MikeGill
Auto-refresh dashboard with vpage hack
Folks,
I'm trying to have my dashboard automatically refresh using a visualforce page db component.
I have seen a s-control hack which does something what I want, but would rather use visualforce.
Any ideas why this doesn't work
<apex:page > <html> <head> <script> function onload() { window.parent.location.replace('/{!$CurrentPage.parameters.id}'); } </script> </head> <body onLoad="setTimeout('onload()', 5000)"> <p>Refreshing.....</p> </body> </html> </apex:page>
again, has nothing to do with reloading the current page/tab. until they expose access to the mechanism that actually triggers the dashboard refresh process, you're stuck with manually building a dashboard out of pure visualforce.
All Answers
reloading the page doesn't refresh the dashboard. clicking refresh on a dashboard kicks off a server side process to do all that, and the page refreshes periodically (or calls some ajax method to check refresh status), and THEN shows the data. they designed dashboards to NOT allow you to do what you're trying to do. we tried this same avenue, but ended up rebuilding a critical dashboard in pure VF to overcome this limitation. this is a glaring area where Salesforce is very far from being real-time.
Thanks for reply!
I wonder if there is a ff/chrome broswer plug-in which reloads current tab.
My client is looking to display the dashboard on a large screen in the office.
again, has nothing to do with reloading the current page/tab. until they expose access to the mechanism that actually triggers the dashboard refresh process, you're stuck with manually building a dashboard out of pure visualforce.
Dam better get coding.
I have just promote the ideas too! Let's hope they add it soon.
thanks again
I'm using the following visualforce component to refresh a dashboard on homepage load:-
...only works if pop-ups are disabled.
displays a small 'Updating Dashboard' message. 5000 milliseconds was the estimated upper limit for time to update dashboard.
... IE currently has issues (bug) with document.write
Surround that code with a try/catch.
Great little hack - thanks.