12. 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)
21. www.axonactive.vnfb.com/AxonActiveVietNamBIRT Report
Visualizing documents
We stored the image's data by an array of bytes
public 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;
}
}
BIRT is based on the popular Eclipse integrated development environment (IDE) used to build and deploy BI applications in a Java/J2EE environment. The goal of the BIRT project is to create a set of tools for data analysis and reporting that are simple and easy to use, while supporting extensibility and modularization.
BIRT focuses on a report designer that is available as an Eclipse plug-in. It also includes a debugger and other development tools.
The uploaded documents are also displayed in the generated report
Display uploaded files / documents / attachments in the generated report
The assigned records to the documents should be mentioned
Display many attachments belonged to one report’s item or vice versa
Complicate Data Bỏ duoc khong?
A BIRT data source is an object that contains the information to connect to an underlying data source
A data set is an object that defines all the data that is available to a report. To create a data set, you must have an existing BIRT data source that we have already create before.
We can easily drag and drop the column from the. dataset to the template.
And, again. Here is the result:
As we mentioned before, we could not reference to CMS directly from BIRT. So, the question, Do we need the template for each language? For example, if we have supported 3 languages we may have 3 corresponding template. The answer is “No”.
Actually, it's quite easy to use CMS by using a data set and transfer the data to BIRT. Therefore, we just use one template for all supported languages
My idea is using a data set to store the labels and then we can show them easily.
He wants to embedded the attachment with the expenses into report. We found 2 solution for this. HMTL & Image.
Fortunately , BIRT supports to include images within a report. Therefore, we can convert our documents to images first.
This feature is available on IvyAddon.
In order to display the attachments that belong to the record on the table, we could use grouping data in BIRT.
Look back the mockup, we have a table with many records. And, some record should have the same document as well as one record should have some different documents.
In order to display the attachments that belong to the record on the table, we could use grouping data in BIRT