BIRTReport
Un article de Bluexml.com.
| | | |
|---|
| Languages : | English |
This article presents how to configure BIRT Report Designer with Alfresco
Sommaire |
Configuring the data source
To configure the data source follow the steps given below :
1. In the Data Explorer View, right-click on the node Data Sources.

2. Select New Data Source.
3. In the New Data Source Window, choose XML Data Source and click Next.

4. In the New XML Data Source Profile, enter this URL : http://localhost:8080/alfresco/service/openbluelab_personne_Person.xml?guest=true
This is the URL where is store the instance of your class. Here I have a class called Person.

Configuring the data Set
To configure the data Set follow the steps given below :
1. In the Data Explorer View, right-click on the node Data Sets.
2. Select New Data Set.
3. In the New Data Set window, click Next.

4. In the XML Data Set window, lcik Next.

5. In the Table Mapping window, select /records/items/item for the XPath Expression.

6. In the Column Mapping window, add the columns you will need for your report and click Finish.

7. In the Edit Data Set window click OK.


Adding Data Set to the report
To add Data Set to the report:
1. Expand the Data Set node.
2. Drag and drop a column to the report.
Viewing the report
Click View Report as PDF to view your report.

