Components are the objects that you can place in a report. JReport provides a full set of components that allow you to present and control the report data and presentation in a wide variety of ways.
Components in JReport can be classified as follows:
Some components can be bound with a dataset or inherit data from the dataset of their parents. These components are Chart, Table, Crosstab, Banded Object, Geographic Map and KPI. They are also referred to as data components or data containers.
In page reports that are created using query resources, you can set up link conditions between two data components which have a parent-child relationship. For details, see Setting Up Data Container Links in Banded Objects.
Components supported for different report types
You can use all of the above components except KPI in page reports created from query resources; while for page reports based on business views, web reports, and library components, only some of them.
In page reports based on business view, these components can be used: Table, Crosstab, 2-D Chart, Banded Object, Label, Image, DBField, Formula Field, Summary Field, Parameter Field, Special Field, Drawing Object, Multimedia Object, Parameter Control, Parameter Form Control, Filter Control, and Navigation Control.
Components supported in web reports include: Table, Crosstab, 2-D Chart, Banded Object, Geographic Map, KPI, Tabular, Label, Image, DBField, Formula Field, Summary Field, Parameter Field, Special Field, Multimedia Object, Parameter Control, Parameter Form Control, Filter Control, and Navigation Control.
In library components, the following can be used: Table, Crosstab, 2-D Chart, Geographic Map, KPI, Label, Image, DBField, Formula Field, Summary Field, Parameter Field, Special Field, Parameter Control, Parameter Form Control, Filter Control, Navigation Control, Text Field, Checkbox, List and Drop-down List.
Components can be placed within banded objects or some other components, as well as onto an empty area of a report. JReport Designer indicates whether or not the target location is valid for the component.
The following tables lists the report areas that are valid targets for the various components in each report type. For components that are not supported in a report type, the corresponding cells are marked by "/".
Page Report |
Web Report |
Library Component |
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Component |
Report Body | Banded Header Panel (BH) | Banded Page Header Panel (BPH) | Banded Detail Panel (DT) | Banded Page Footer Panel (BPF) | Banded Footer Panel (BF) | Banded Group Header Panel (GH) | Banded Group Footer Panel (GF) | Text Box | Table Cell | Tabular Cell | Page Header/ Footer Panel | Banded Header Panel (BH) | Banded Page Header Panel (BPH) | Banded Detail Panel (DT) | Banded Page Footer Panel (BPF) | Banded Footer Panel (BF) | Banded Group Header Panel (GH) | Banded Group Footer Panel (GF) | Table Cell | Tabular Cell | KPI | Page Header/ Footer Panel | Report Body | KPI | Table Cell |
Chart | Y | Y | N | N | N | Y | Y | Y | N | N | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | Y | N | N |
Table | Y | Y | Y | Y | Y | Y | Y | Y | N | N | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | Y | N | N |
Crosstab | Y | Y | Y | Y | Y | Y | Y | Y | N | N | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | Y | N | N |
Banded Object | Y | Y | Y | Y | Y | Y | Y | Y | N | N | Y | Y | N | N | N | N | N | N | N | / | / | / | / | / | / | / |
Map | Y | Y | N | N | N | Y | Y | Y | N | N | Y | Y | N | N | N | N | N | N | N | N | Y | N | Y | Y | N | N |
KPI | / | / | / | / | / | / | / | / | / | / | / | / | / | / | / | / | / | / | / | N | Y | N | Y | Y | N | N |
Label | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
DBField | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | Y | Y |
Parameter Field | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | N | Y | N | Y |
Summary Field | N | Y | N | N | N | Y | Y | Y | N | Y | N | N | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | Y | Y |
Formula Field | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | Y | Y |
Special Field | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | N | Y | N | Y |
Tabular | Y | Y | Y | Y | Y | Y | Y | Y | N | N | Y | Y | N | N | N | N | N | N | N | N | N | N | N | / | / | / |
Web Control | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | Y | N | N |
Image | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y |
Multimedia Object | Y | Y | Y | Y | Y | Y | Y | Y | Y | N | N | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | / | / | / |
Text Box | Y | Y | Y | Y | Y | Y | Y | Y | N | N | Y | Y | / | / | / | / | / | / | / | / | / | / | / | / | / | / |
Subreport | Y | Y | Y | Y | Y | Y | Y | Y | N | N | Y | Y | / | / | / | / | / | / | / | / | / | / | / | / | / | / |
Drawing Object | N | Y | Y | Y | Y | Y | Y | Y | N | N | N | N | / | / | / | / | / | / | / | / | / | / | / | / | / | / |
UDO | N | Y | Y | Y | Y | Y | Y | Y | N | N | N | N | / | / | / | / | / | / | / | / | / | / | / | / | / | / |
Barcode | Barcode and rank components can be inserted in a report layout area that is valid for the component on which the barcode or rank is based. For example, a rank component that represents a DBField is allowed in the report layout areas in which a DBField component is allowed. | / | / | / | / | / | / | / | / | / | / | / | / | / | / | |||||||||||
Rank | / | / | / | / | / | / | / | / | / | / | / | / | / | / |