Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Alessandra Toninelli
2013/11/08 15:50
Table of Contents
1 What is BIRT ......................................................................................................................................................................
2 How to design a report with BIRT .....................................................................................................................................
3 How to configure a BIRT report in SpagoBI .....................................................................................................................
3.1 Using SpagoBI Datasource in BIRT report ..................................................................................................................
4 How to attach parameters to your BIRT report ..................................................................................................................
5 How to manage Internationalization ...................................................................................................................................
6 Cross Navigation .................................................................................................................................................................
7 Using SpagoBI Datasets in BIRT .......................................................................................................................................
3
3
3
4
6
6
6
6
1 What is BIRT
BIRT is an Eclipse-based reporting system. As all common reporting systems, it has two main components:
a report designer based on the Eclipse platform
a runtime component that runs on your application server
Name (mandatory)
Description (highly suggested)
Type (in this case select Report)
Engine (in this case select Birt)
Data source
...
Attach the template by browsing your file system and selecting the .rptdesign template file from the location you saved it in
the design phase with your BIRT Eclipse plugin.
If your DataSource is defined in SpagoBI with JNDI type (RECOMMENDED). See the following example:
Add a parameter of type String in your BIRT report called connectionName. Do not assign to it any value.
This parameter doesn't need to be added in SpagoBI as Analytical Driver. It will be set by SpagoBI automatically.
If your DataSource is defined in SpagoBI with JDBC type. See the following example:
Add 4 parameters of type String to your BIRT report named: driver , url , user , pwd. Do not assign them any value.
Attach them to your Datasource as in the example above.
6 Cross Navigation
Cross Navigation
Define a new dataset of type SpagoBI. In the first page you should select the data source and give a name to the
dataset. This name is used only in the BIRT designer, its not the name of the datset in SpagoBI.
Click next, and in the second page insert the name of the SpagoBI dataset you want to import..
In the wizard you can see the output columns of the DataSet, the preview and the parameters.
SpagoBIStudio loads the list of the parameters linked to the dataset. In the parameters tab you can give a default value to
the parameter, or you can link the parameters of the dataset to the parameters of the report. In this way when you deploy the
document, you can use the parameters of the document as parameters of the dataset.
Note: if you want to enable the null as admissible value for the report you should define the configuration variable
DATA_SET_NULL_VALUE (with the manage configs functionalty), with the value that the parameters should take if no
value is specified