Eclipse BIRT Report Object Model (ROM)
DataGroup Element
Display Name: | Data Group |
Since: | 2.2 |
XML Element: | data-group |
Extends: | None |
Extendable: | No |
Abstract: | No |
Name Space: | None |
Name Requirement: | Not Supported |
Allows User Properties: | No |
Has Style: | No |
An element can be divided into a number of groups. Groups often have subtotals. For example, a sales report may show totals per sales rep and region.
A data group is defined by a group key. The key is a column from the query. If the group key is a time field then user often want to group on an interval such as month or quarter.
A filter to apply to the each group as a whole.
Type: | List of FilterCondition Structures |
Since: | 2.3 |
Required: | No |
Display Name: | Filter |
JavaScript Type: | |
Default Value: | None |
Inherited: | Yes |
Runtime Settable: | No |
Property Sheet Visibility: | Hidden |
Property Sheet Group: | Top |
A filter to apply to the each group as a whole. The filter conditions should apply to values that are constant for each group. This means that the filter expressions should be functionally dependent on the group key, or should be defined on aggregates computed over the group. For example, display only customers with non-zero sales totals, or display only the top 10 customers as determined by sales.
Optional name of the group.
Type: | string |
Since: | 2.3 |
Required: | No |
Display Name: | Name |
JavaScript Type: | |
Default Value: | None |
Inherited: | Yes |
Runtime Settable: | No |
Property Sheet Visibility: | Visible |
Property Sheet Group: | Top |
Optional name of the group. The group name must be unique within the list or table. The name is used to identify the group in aggregates as explained in the scripting specification.
When creating intervals, this property allows grouping on a range of contiguous values.
Type: | choice (interval) |
Since: | 2.3 |
Required: | No |
Display Name: | Interval |
JavaScript Type: | |
Default Value: | none |
Inherited: | Yes |
Runtime Settable: | No |
Property Sheet Visibility: | Visible |
Property Sheet Group: | Interval |
Name | Display Name | Value | Description |
none | No Interval | none | Group on individual values. |
prefix | Prefix | prefix | Group on a string prefix |
year | Year | year | Group on a range of years. |
quarter | Quarter | quarter | Group on a range of quarters. |
month | Month | month | Group on a range of months. |
week | Week | week | Group on a range of weeks. |
day | Day | day | Group on a range of days. |
hour | Hour | hour | Group on a range of hours. |
minute | Minute | minute | Group on a range of minutes. |
second | Second | second | Group on a range of seconds. |
interval | Interval | interval | Group on a numeric interval. |
This property allows the group to include a range of contiguous values. For example, a monthly sales report may want to summarize a list of individual transactions, each of which has a transaction date. Using the Month interval, BIRT will cause a break to occur each time the transaction dates move into a different calendar month.
Use this property with the
intervalRange
property to select a set of contiguous
values. For example, a bi-monthly report would use the Month interval
with an intervalRange
of 2.
intervalRange
Property
In conjunction with Interval and IntervalRange, determines how data is divided into groups.
Type: | string |
Since: | 2.3 |
Required: | No |
Display Name: | Interval base |
JavaScript Type: | |
Default Value: | None |
Inherited: | Yes |
Runtime Settable: | No |
Property Sheet Visibility: | Visible |
Property Sheet Group: | Interval |
In conjunction with Interval and IntervalRange, determines how data is divided into groups.
Number of contiguous groups to merge to create a single group.
Type: | float |
Since: | 2.3 |
Required: | No |
Display Name: | Interval range |
JavaScript Type: | |
Default Value: | None |
Inherited: | Yes |
Runtime Settable: | No |
Property Sheet Visibility: | Visible |
Property Sheet Group: | Interval |
When creating intervals, this attribute allows grouping on a range of contiguous values. For example, to show data over the span of three hours, set the grouping interval to hours and the range to 3. The user enters the interval range here.
The following shows the meaning of the range for each interval type.
Interval | Meaning of Range |
None | Ignored |
Prefix | The number of characters in the prefix. |
Date/Time | The number of the units. |
Interval | The numeric interval |
interval
Property
The expression for the group key.
Type: | expression |
Context: | |
Expression Type: | any |
Since: | 2.3 |
Required: | Yes |
Display Name: | Key expression |
JavaScript Type: | |
Default Value: | None |
Inherited: | Yes |
Runtime Settable: | Yes |
Property Sheet Visibility: | Visible |
Property Sheet Group: | Top |
Gives the group key as an expression. The group key says when
to cause a group break listing. For example, if the group is by state,
then the group key might be "row.state
". A
level break occurs each time the key changes. At each level break, the
current group is ended, and a new group started. The expression most
often is just a column, but can be a computed value.
Custom sort criteria to apply to the groups as a whole.
Type: | List of SortKey Structures |
Since: | 2.3 |
Required: | No |
Display Name: | Sort |
JavaScript Type: | |
Default Value: | None |
Inherited: | Yes |
Runtime Settable: | No |
Property Sheet Visibility: | Hidden |
Property Sheet Group: | Top |
Custom sort criteria to apply to the groups as a whole. For example, the report may group customers by customer ID, but sort the customers by total sales or by customer name.
sortDirection
property
The sort direction for the groups at this level.
Type: | choice (sortDirection) |
Since: | 2.3 |
Required: | No |
Display Name: | Sort direction |
JavaScript Type: | |
Default Value: | asc |
Inherited: | Yes |
Runtime Settable: | No |
Property Sheet Visibility: | Visible |
Property Sheet Group: | Top |
Name | Display Name | Value | Description |
asc | Ascending | asc | Sort values from lowest to highest. |
desc | Descending | desc | Sort values from highest to lowest. |
The sort direction applies only if the List does not have a
custom sort defined using the sort
property.
The default group sort key is the group key.
sort
Property
Sort type property
Type: | choice (sortType) |
Since: | 2.3 |
Required: | No |
Display Name: | Sort type |
JavaScript Type: | |
Default Value: | none |
Inherited: | Yes |
Runtime Settable: | No |
Property Sheet Visibility: | Visible |
Property Sheet Group: | Top |
Name | Display Name | Value | Description |
none | No Sort Type | none | |
sort-on-group-key | Sort on Group Key | sort-on-group-key | |
complex-sort | Complex Sort | complex-sort |
Sort type