Working with Domains
| This section describes functionality that can be restricted by the software license for JasperReports Server. If you don’t see some of the options described in this section, your license may prohibit you from using them. To find out what you're licensed to use, or to upgrade your license, contact Jaspersoft. |
You can create reports based on Domains that are defined in JasperReports Server. Such reports use data adapters to load data stored in the Domains, which can then populate your report. To create a Domain-based report, create a data adapter and design a report with its data. Before you create these objects, you need a connection to a server. For more information, see Connecting to JasperReports Server.
To create a Domain-based report:
| 1. | Click File > New > JasperReport. |
The New Report Wizard appears.
| 2. | Select a template and click Next. |
| 3. | Select a location to save your report, enter its name, and click Next. |
You are prompted to select a data adapter.
| 4. | Select Domain JRS - Query Executor adapter. |
You are prompted to select a server and Domain.
| 5. | Select a server connection. |
You are prompted that changing the server resets the query. Since this is a new report, there's no query yet, so nothing will be reset.
The Domain drop-down is populated with a list of Domains defined on the server.
| 7. | Click the Domain containing the data for your report. |
You are prompted that changing the Domain resets the query. Since this is a new report, there's no query yet, so nothing will be reset.
| 9. | Select items in the Domain on the left-hand side of the dialog, and drag them to the right-hand side to create fields and filters. |
| 10. | When you have the fields and filters you need for your report, click Next. |
You are prompted to select fields for your dataset.
| 11. | Select the fields to include, and click Next. |
| 12. | You are prompted to define grouping in your dataset. |
Select a field to use to group your data and click Next.
| 13. | Click Finish to complete your report. |
| 14. | The blank report appears in the Design tab. Use the Palette and Outline to define your report as usual. |
| 15. | When your report is ready to be tested, click Preview. |
Jaspersoft Studiocompiles your report; if it is successful your report is filled and displayed.
| 16. | Review your report, and make any changes necessary. |
| 18. | Click |
The report is published to the server.
Recommended Comments
There are no comments to display.