Hello everyone
i want to display report in my web application using Visualize.js and jasper report server , i configure all thing (server , frontend, backend ..). and the report connect to database and display the report ,but i do not want jasper server to connect to my database . i want to send the data to jasper server and render the report in my web application using Visualize.js.
is there any way to send data to report , some thing like sending paramter to server & report.
thank you .
4 Answers:
I have an old stackoverflow post explaining how to push XML/JSON data to a report deployed in JasperReports Server and some basic ways to test it:
https://stackoverflow.com/a/37441567/5882963
That could be a starting point.
Do you want to send your json every time you generate a report or want to update the data so other users would be able to view the report with the updated data?
narcism way of passing json string via parameter would work when json string is passed each time the report is to be generated.
If you want to update the data used to generate a report, all that's required is to create a simple servlet to receive the json data and save it in a data source. (e.g. update data in in memory database or beans.)
Following page contains a simple example of a servlet. It's possible to deploy the servlet on the same Tomcat as JasperReports Server.