Birt Report

Post on 09-Jan-2017

417 views 2 download

Transcript of Birt Report

VISION TEAMVISION TEAM

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

1. Introduction

2. BIRT Installation in Ivy

3. BIRT Practices

Using Dataset

Insert Image

Group Data

4. Demo

5. Q&A

Agenda

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Most applications have some types of data visualization needs:

Gather data.

Perform calculation, sort, group, aggregate, total,..

Present information professionally.

1. Introduction

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Open source business intelligence (BI)

reporting tools

Integrated in Ivy

1. Introduction – BIRT

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Is extension of Ivy 4&5

2. BIRT Installation in Ivy

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

2. BIRT Installation in Ivy

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

3. BIRT Practices

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Create a report

Support multi-language

Display uploaded files / documents / attachments

Display:

- Many attachments belonged to one report’s item

- One attachment belonged to many report’s

items

3. BIRT Practices – Customer’s needs

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Mockup

3. BIRT Practices – Customer’s needs

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Can not access CMS directly from BIRT.

Visualize many kinds of documents (Office,

Image, PDF, …)

How to group data.

3. BIRT Practices – Difficulties

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

3. BIRT Practices - Solutions

Access data

How to get and display our complicated data on the report.

BIRT provides the following data sources : Text Files (XML) WebServices (via WSDL-Files) cripting Data sources Databases (via JDBC)

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Access data

List<ExpenseTableReport> expsenseTable = new ArrayList<ExpenseTableReport>();

expsenseTable = reportService.getExpenseTableReport(in.expsenseList);

in.listParameters.put(ReportParam.EXPENSE_TABLE.getValue(),expsenseTable);

Ivy Designer SideIvy Designer Side

3. BIRT Practices - Solutions

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Access data

Step 1: Create a data source

BIRT Designer Side (Report Template)BIRT Designer Side (Report Template)

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Access data

BIRT Designer Side (Report Template)BIRT Designer Side (Report Template)

Step 2: Create a data set and write the JavaScript for our dataset.

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Access data

Step 3: Design and display the data in a table

BIRT Designer Side (Report Template)BIRT Designer Side (Report Template)

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

German template?

Multi-language

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Multi-language

English

German

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Visualizing documents

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Visualizing documents

Html Thumbnailer plugin

Base on Aspose Component.

Embedded in IvyAddon.

Convert documents to images (png/jpg)

Support MSOffice, OpenOffice, Pdf, Text,…

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Visualizing documents

We stored the image's data by an array of bytespublic class ImageReport {

private String attachmentKey;private byte[] content;

public String getAttachmentKey() { return attachmentKey;

}public void setAttachmentKey(String attachmentKey) { this.attachmentKey = attachmentKey;}public byte[] getContent() {

return content;}public void setContent(byte[] content) {

this.content = content;}

}

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Visualizing documents

In data set, create a column with Blob type

And, use image element to show the image

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Visualizing documents

The result like this:

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Grouping Data

The assigned records to the documents (word, excel, jpg, pdf,..) should be mentioned.

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Grouping Data

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Grouping Data

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Grouping Data

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

[1]. https://guidelines.soreco.ch/projects/guides/wiki/BIRT

[2]. http://wiki.eclipse.org/BIRT/FAQ/Data_Access

[3]. http://www.vogella.com/tutorials/EclipseBIRT/article.html

[4]. http://www.eclipse.org/birt/

[5]. http://birtworld.blogspot.com/2010/09/birt-image-report-item.html

Reference

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

DEMO

www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report

Thanks for your attention