function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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. 

<analytics:reportChart reportId="00Oj0000001JKgL" size="small" showRefreshButton="false" />
Best Answer chosen by Case Manager
Nilesh Jagtap (NJ)Nilesh Jagtap (NJ)

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.