I.Problem description
For monitoring systems, database is updated in a real-time manner, so you may wish the report on the browser side can be refreshed timely, for example, when monitoring the trend of stock prices. Therefore, how to realize auto report refresh?
II.Implementation method
Click [Template] > [Web attributes]. In Web Attributes panel, click Pagination Preview tab, and choose Individually set for the report. Afterwards, you can click the plus sign to add a Load End (i.e. afterload) event.
Use the JS setInterval method to call a reload function at a specific time interval to realize auto refresh, and the corresponding JS script is shown below:
setInterval("self.location.reload();",10000); //10000ms means refresh per 10s