This repository contains some templates of Jaspersoft Reports, which can be used with a new reporting functionality of Q-Rapids Dashboard.
A quick guide for generating new reports is available in this reporistory wiki.
In order to work with reports, you need to have installed Jaspersoft Studio and JasperReports Server.
In short, Jaspersoft Studio is used to create and publish reports on JasperReports Server to which one is conecting Q-Rapids Dashboard for generate reports with data.
To configure all, you should follow the next steps:
- Step 1. Unzip the "Reports code" zip file from this repository.
- Step 2. Import this folder as Existing Projects into Workspace to Jaspersoft Studio.
- Step 3. In Project Explorer tab (inside of Reports code), you need to open QRapids Data Adapters folder and update all xml files. Write the correct datasource url, especifing the connection to the corresponding dashboard RESTful service providing the data you want to use in the report.
- Step 4. Configure JasperReports Server connection from Repository Explover tab, you need to right click on Server section and then chose Create JasperReports Server Connection option.
- Step 5. Now reports are ready to be published on Jaspersoft Server. For publishing reports, you have to open the report jxml file (from Project Explorer tab, inside of Reports code folder) and then click on Publish file to JasperReports Server button.
After selecting the folder where the report will be published, you have to choose Publish Strategy for all Resources as Overwrite.
Important: All the reports and folders need to be published inside a folder named Q-Rapids. Only the reports and folders inside the folder Q-Rapids will be available from the dashboard.
-
Step 6. Finally reports are published on JasperReports Server, so now you have to configure Q-Rapids Dashboard to be able to access to them from the dashboard. Modify the dashboard configuration file (
application.properties
) adding the following fields:jasperServer.url=
<JASPER SERVICE URL>
jasperserver.user=<JASPER SERVER USERNAME>
jasperserver.password=<JASPER SERVER PASSWORD>
For more information about dashboard configuration file consult Configuration File.
- Step 7. The configuration is finished, so now you can generate reports on Q-Rapids Dashboard.
More information about how to use the reporting functionality from the dashboard is available in the Reporting User Guide section.