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 defined in JasperReports Server. Such reports use data adapters to load data stored in the Domains. To create a Domain-based report, create a data adapter and design a report with its data. Before you create these objects, you'll need a connection to the server. 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. |
| 4. | When prompted for a data adapter, select Domain JRS - Query Executor adapter. |
| 5. | Select a server connection. Ignore the notice that changing the server resets the query. As this is a new report, there's no query yet. |
| 6. | Click Yes. 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. Ignore the notice that changing the Domain resets the query. As this is a new report, there's no query yet. |
| 9. | Select items in the Domain on the left-side of the dialog, and drag them to the right-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. You are prompted to define grouping in your dataset. |
| 12. | Select a field for grouping your data and click Next. |
| 13. | Click Finish to complete your report. The blank report appears in the Design tab. Use the Palette and Outline to define your report as usual. |
| 14. | Click Preview to test your report. Jaspersoft Studio compiles your report; if it's successful your report is filled and displayed. |
| 15. | Review your report, make any needed changes, and save it. |
| 16. | Click |
Recommended Comments
There are no comments to display.