BIRTReport

Un article de Bluexml.com.

Home Official WebSite Download Forum

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.

Image:Birt_report_data_explorer.jpg

2. Select New Data Source.

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


Image: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.


Image: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.

Image:Birt_report_xml_new_data_set.jpg

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

Image:Birt_report_xml_data_set.jpg

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

Image:Birt_report_table_mapping.jpg

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

Image:Birt_report_column_mapping01.jpg

7. In the Edit Data Set window click OK.

Image:Birt_report_Edit_Data_set.jpg
Image: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.


Viewing the report

Click View Report as PDF to view your report.

Image:View_pdf.JPG


Image:Birt_report_pdf_view.jpg