+ Start a Discussion
Case ManagerCase 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>
Best Answer chosen by Case Manager
Nilesh Jagtap (NJ)Nilesh Jagtap (NJ)
Hi,

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