prabuddha.kulatunga Posted August 9, 2018 Share Posted August 9, 2018 I use a jasper report as my dashboard on Jasper Server 6.4.2 version.on that report, I have to display current time with live updates without reloading the report manually. I tried to schedule the report and set as output options as Overwrite Files and it's not worked.Basically,I want to reload a report when it already opened and displayed withing every given time period repeatedly until I close the report. How can I do this? Link to comment Share on other sites More sharing options...
arun.rout31 Posted August 9, 2018 Share Posted August 9, 2018 If you are using Java Then use multithreading while file output to load every time period given by you Link to comment Share on other sites More sharing options...
prabuddha.kulatunga Posted August 9, 2018 Author Share Posted August 9, 2018 No. I use JasperSoft Studio and Jasper Server only. Link to comment Share on other sites More sharing options...
reportdev Posted August 9, 2018 Share Posted August 9, 2018 Try this... Once you open the Report with parameter selections, the REST URL will be populated with all the parameters that it needs. Use some kind of browser refresh plugins to refresh the browser pagepersonally I use chrome https://chrome.google.com/webstore/detail/auto-refresh-plus/oilipfekkmncanaajkapbpancpelijih?hl=en Link to comment Share on other sites More sharing options...
hozawa Posted August 9, 2018 Share Posted August 9, 2018 Have you tried setting "Refresh Settings" - "Auto-refresh dashlet contents"https://community.jaspersoft.com/documentation/tibco-jasperreports-server-user-guide/v71/dashlet-properties Link to comment Share on other sites More sharing options...
Solution prabuddha.kulatunga Posted August 10, 2018 Author Solution Share Posted August 10, 2018 Found a way by myself.Go to ViewReport.jsp on jasper server installation files.Then add below code for it.(Actually we use java script to do this.) <script type="text/javascript"> var url = window.location.href; //take current tab url var dash = 'http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&_flowId=viewReportFlow&ParentFolderUri=%2FMy_Reports&reportUnit=%2FMy_Reports%2FDashboard_Report_Original__2_&standAlone=true'; if(url == dash ){ setTimeout(function(){ window.location.reload(1); }, 5000); }</script>url is the current display report url.dash is the url that we want to refresh. otherwise all the reports will be refresh withn every 5seconds.5000 is time gap want to refresh.restart the jasper server.that's it.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now