Follow sidelabs on Twitter

BIRTReport

From SIDE-Labs.org

This article presents how to configure BIRT Report Designer with Alfresco

Contents

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.

Birt report data explorer.jpg

2. Select New Data Source.

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


Birt report new data Source.jpg

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.


Birt report xml data profile.jpg


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.

Birt report xml new data set.jpg

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

Birt report xml data set.jpg

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

Birt report table mapping.jpg

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

Birt report column mapping01.jpg

7. In the Edit Data Set window click OK.

Birt report Edit Data set.jpg
Birt report data set explorer.jpg


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.

Birt report add data set01.jpg


Viewing the report

Click View Report as PDF to view your report.

View pdf.JPG


Birt report pdf view.jpg