I created a stacked bar chart in dashboard, I wish it can display the current database data when open dashboard each time.
However when database data changed, the bar chart seems fixed in previous data and refresh is not work.
Is there any configuration I need to setup? Please help, thank you~
The version of ReportServer I used is 2.2.2.5639 and my database is Oracle 10g.
if you reference a report in a dashboard the report is currently loaded only once when the dashboard is first displayed. You can manually reload the report by clicking on the reload button of the dadget (top right). If you want an automatic refresh I am afraid there is no simple solution at the moment. What you could go for is to write a custom HTML page which embeds the report in an iframe and refreshes regularly using javascript.
I did try to reload the bar chart by clicking on the reload button of the dadget, however the bar chart still fixed in the previous data unless I restart Tomcat server the dashboard will reload but just once. After that if my database data changes the reload function still not working.
I don’t want an automatic refresh but I wish the dashboard dadget refresh function will working.
this is indeed odd. What kind of report are we talking about here? Could you maybe try the following. Could you use a tool such as FireBug (http://getfirebug.com/) and have a look at the network traffic once you hit the refresh button? What you should see is that a request is made to the server. Is that the case?
I have downloaded and installed the FireBug plugin for Firefox, and I tested the refresh button, but how do I know the network traffic between ReportServer and database is normal?
BTW, I installed another ReportServer environment and retry the same scenario, when my external database data changed, the dashboard refresh button still not working.
P.S. may I upload image to the forum? Maybe I can upload some images for your references.
FireBug can simply tell you whether a request occurs, once you hit the refresh button. Once we can confirm that this happens we can start trying to understand what goes wrong. For example,
FireBug allows us to have a look at the data being sent to the server and data coming back from the server.
What kind of report are you using? A dynamic list, a jasper report, BIRT?
You can upload images to http://snag.gy/ and link to them from here.
looks like some cache is not being properly flushed between report executions.
As a workaround use this script http://www2.datenwerke.net/files/forum/t376/flushMondrianCache.groovy
and place it in /fileserver/bin/onstartup.d/
after a restart the cache gets cleared before each report execution. A permanent fix will be included in the next release version.
Thank you for your great help, the dashboard chart refresh button is working.
However the Pivot mode report has similar problem, I need to re-login ReportServer to make the Pivot report data refresh.
And also need your help to check this problem. Thank you again!
while having the report open the data is indeed cached. However, once you completely close the report and reopen it (and if you have hooked in the script Thorsten provided) the cache should be cleared. Could you verify this?
Hi, I am using v3.0.2 and notice the cache is not getting cleared at every report execution. And imho it shouldn’t, I’d rather like it cleared only daily since we have a scenario of a daily ETL job feeding our datawarehouse. So I could schedule a similar script to clear the cache daily. Is this a sensible approach?