Styles, Themes, and Templates
[ 172 ]
Style Sheets
BIRT??”being a web-based reporting environment??”takes a leaf from general web
development toolkits by importing Style Sheets. However, BIRT Style Sheets
function just slightly differently from regular Style Sheets.
We are going to add on to the Customer Orders report we have been working with,
and will create some Styles that will be used in this report.
1. Open Customer Order.rptdesign.
2. Right-click on the getCustomerInformation Data Set and choose Insert in
Layout. Modify the Table visually to look like the following figure:
3. Create a new Data Set called getCustomerOrders. Use the following query:
select
*
from
CLASSICMODELS.ORDERDETAILS,
CLASSICMODELS.ORDERS
where
CLASSICMODELS.ORDERS.ORDERNUMBER =
CLASSICMODELS.ORDERDETAILS.ORDERNUMBER
And CLASSICMODELS.ORDERS.CUSTOMERNUMBER = ?
4. Link the Data Set Parameter to rprmCustomerID.
5. Save the Data Set, then right-click on it in the Data Explorer and choose
Insert in Layout.
Chapter 8
[ 173 ]
6. On the first column for ORDERNUMBER, select the column.
7. Under the Property Editor, select Advanced. Go to the Suppress duplicates
option and change it to true.
Styles, Themes, and Templates
[ 174 ]
8. In the Outline, right-click on Styles and choose New Style.... In the Dialog
that follows, choose table-header from the Predefined Style drop-down box.
Pages:
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157