Jaspersoft
The Jaspersoft Studio and Jasper Reports Library products are used to build report models run from products or resources available on the senior X Platform. These tools have no acquisition cost, have extensive online documentation and are simple and easy to install, which is why they were selected by Senior to replace the Report Generator.
Information about use and compatibility of these tools for use with Senior products:
Parameters
Create parameters in Jasper reports to be automatically populated with the user's access credentials, without the need to apply filters. Such parameters are:
- SENIOR_USERNAME: This is a String type parameter that contains the user's @domainname. In other words, if it is created in JasperReport, when running the report, the name of the user who ordered it to be run will be passed;
- SENIOR_TOKEN: String type parameter that contains the user's access token, useful for making API calls to the senior X Platform through the report. This way, it is possible to use JasperReport web services. When creating a report that passes the SENIOR_TOKEN, the user is informed that their access information will be used;
- SENIOR_CURRENT_DATE: parameter of type ```java.time.OffsetDateTime``` containing the difference in offset of the user who sent the report and UTC. When issuing reports that count dates, it is necessary to take into account that times are stored in UTC format. For products that present tables or fields in another time format for legal reasons, consult the documentation for each product;
- SENIOR_LOCALE: locale of the user who issued the report.
To create a report with special parameters in JasperReport, follow the normal report creation procedure and include the mentioned fields, as needed. In this way, the report is issued with special parameters in the same way as other reports are issued. However, in the case of using a token, you are notified about sharing your access credentials.