Introduction
To get started with JasperReports Server and defining reports, it is important to understand the various components that are used to define a report. This tutorial explains the various components used in defining a report and their relationships, including:
- Data Sources
- Domains
- Topics
- Filters and Input Controls
- Ad Hoc Reports versus Jasper Reports
Product Version
This tutorial refers to concepts associated with JasperReports Server Professional 3.0 and later.
Objectives
This guide will enable you to understand:
- Reports: Ad Hoc Reports versus Jasper Reports
- Data Source component
- Domain component
- Topic component
- Filters and input controls
- Report components relationships
Pre-Requisites
None
Ad Hoc Reports versus Jasper Reports
A report or report unit can be thought of as a complete set of components for controlling and generating report output. It includes the report query, input controls, necessary calculations, and layout instructions that when run against a particular data source or domain can produce results rendered and exported in a given layout and format for end-user consumption. Reports can be categorized into two major categories: Ad Hoc Reports and Jasper Reports
|
Data Source Component
A Data Source defines the connection properties that JasperReports Server needs to access data.
|
Domain Component
A Domain is a virtual view of a data source that presents the data in business terms, allows for localization, and provides data-level security.
|
Topic Component
A Topic is a predefined set of fields, filters, and input controls defined by a particular query against a data source or domain, input controls, and a data source or domain that can be used to create Ad Hoc Reports.
|
Filters and Input Controls
A Filter limits the data returned by a report based on a comparison of fields and values.
An Input Control defines the prompt that an end-user receives at run time to provide a value or values to be used in a Filter.
|
Report Component Relationships
To help visualize the relationship between the various report components and the resulting report, consider the following image, which shows the components of a working report.
|
A Topic is made up of the same components and relationship to a Domain or Data Source as a report, except it is missing the layout definition.
Note: All Ad Hoc reports are built starting from a Topic.
|
What's Next?
With an understanding of the basic components used in the building of reports and their relationships, now is the time to try building these components and building your first report.
Log in or register to post comments