You need to sign in to do that
Don't have an account?
Case Manager
How to auto refresh reports on a Visualforce page?
I am able to display a report on a vf page using the below code, I am hiding the refresh button, now I want to refresh the report for every n seconds or whenever the user opens that visualforce page.
<apex:page>
<analytics:reportChart reportId="00Oj0000001JKgL" size="small" showRefreshButton="false" />
</apex:page>
<apex:page>
<analytics:reportChart reportId="00Oj0000001JKgL" size="small" showRefreshButton="false" />
</apex:page>
The one alternative would be including 'cacheResults = "false"' attribute to analytics:reportChart, this will ensure that report will run for every time page is refreshed.
Thanks,
N.J