...
...
...
...
...
This article describes how Smart ID Identity Manager
...
uses JasperReports to generate reports.
JasperReports is developed by Jaspersoft. The reports are created based on templates, that are created and modified in TIBCO Jaspersoft® Studio. It produces a .jrxml file, which stores all layout information. The .jrxml file represents the report template and is stored in the file system. JasperReports fills the template with data from a data source. The user uploads the report template in Identity Manager Admin
...
.
There are two use cases for reports:
- Reports based on search configuration
The report is dynamically generated depending on the search result. You can add JasperReport functionality to a search configuration in Identity Manager Admin. There you choose a JasperReport template (templateName.jrxml). The generated report will show a list of objects retrieved by the search. - Reports based on form content
You can include a button to trigger the report in form designer of Identity Manager Admin. The generated report will show the content of the current data map of the process. This is useful for printing receipts or PIN letters for example.
Prerequisites
Expand | ||
---|---|---|
| ||
|
...
Work flow
Expand | ||
---|---|---|
| ||
JasperReports is a Java open source tool for generating reports for several file formats, such as PDF, HTML, XML, XLS and CSV. JasperReport uses its own XML-dialect (jrxml) for the report definition. The printable report will be generated using the jrxml file together with data from the Identity Manager database. For more information, go to https://www.jaspersoft.com/. The preparation phase
Work flow:
The execution phase
|
...
|
...
To print the search results:
|
...
To print from a form within a process:
|
...
|
Set up report definitions for search configurations
Expand | ||
---|---|---|
| ||
In Jaspersoft Studio you can either design a report definition from scratch or open one of the predefined reports delivered with Identity Manager to adjust the layout as needed. If you create a new dynamic report, only templates for the the first column, the header and filter parameters are defined and the actual number of needed result columns is generated during runtime according to the specifications of the search configuration. Be careful to use the exact names as described here, because Identity Manager will use them to generate the report automatically. To create the report definition in Jaspersoft Studio, do the following:
The names of the template fields must be:
The base elements of this generic report must be:
Refer to the documentation of Jaspersoft Studio for the details on report design. To modify the predefined report definition, do the following:
|
Expand | ||
---|---|---|
| ||
In Jaspersoft Studio you can either design a report definition from scratch or open one of the predefined reports delivered with Identity Manager to adjust the layout as needed. In a static report definition the columns are not generated by Identity Manager as in the dynamic report, but taken as they are defined in the definition file. All fields are referenced by the name, so this will provide more flexibility according to report design. The disadvantage is that the report design only fits for search configurations that deal with the same fields as in the report. For example, if the report is based on person data, it only fits for search configurations for persons. To create the report definition in Jaspersoft Studio, do the following:
Example: The report definition contains three fields: Additionally a page number should be added to the report: Refer to the documentation of Jaspersoft Studio for the details on report design. To modify the predefined report definition, do the following:
|
Set up report templates with grouping
Expand | ||
---|---|---|
| ||
You can use grouping of search results to add sums, average or other calculations to a report. For example, group a list of cards sorted by the card type and add a total count of each card type. To set up a report with grouping in Jaspersoft Studio is similar to setting up a plain list report like described above. For the grouping, some additional things must be added:
|
Expand | ||
---|---|---|
| ||
In the dynamic report, grouping can only be done by the first column of the search configuration's result columns. The structure of the report is the same as described in the section "Set up dynamic report definition", except that grouping is added.
|
Expand | ||
---|---|---|
| ||
With a static report template it is possible to select any column for grouping without changing the order sequence of the search configuration. This can be done because in a static report all fields are referenced by the name, and this provides more flexibility according to report design. The disadvantage is that the report design only fits for search configurations that deal with the same fields as in the report. For example if the report is based on person data, it only fits for search configurations for persons. The structure of the report is the same as described in the section "Set up static report definition", except that the grouping was added. |
Set up report definitions for forms
Expand | ||
---|---|---|
| ||
You can create a static report definition based on the fields that are contained in the data map of the process where the PDF printing form should be used. The report definition in this case does not represent a list of data but a printable representation of the current process data. This can be used for printing receipts or PIN letters for example. To edit the report definition in Jaspersoft Studio:
Example: The report definition contains four fields:
Refer to the documentation of Jaspersoft Studio for the details on report design. |
Upload the report definition in Identity Manager Admin
Expand | ||
---|---|---|
| ||
|
Use custom fonts in a report
Expand | ||
---|---|---|
|
...
| |
In order to use custom fonts, they must be installed in Jaspersoft Studio in the following way:
A detailed description of how to install a font is described in the Jaspersoft documentation: https://community.Jaspersoft.com/wiki/custom-font-font-extension |
Related information
...
...
...
- Operator
- IDM 23.10.3 - Requirements and interoperability
- Set up search configuration in Identity Manager
- Set up form in Identity Manager
- Set up report template in Identity Manager