Log in / create account
View source | Discuss page | Page history | Printable version   
ADVERTISEMENT
Accounting eLearning Courses
Partnerships
SourceForge.net Logo
Openbravo ERP at SourceForge

SourceForge.net Logo
Openbravo POS at SourceForge

Open Solution Alliance Logo
Openbravo at Open Solutions Alliance

Developers Manual/Creating reports using Jasper Reports

This document is still a work in progress. It may contain inaccuracies or errors.


Contents

Introduction

Openbravo has been integrated with JasperReports, so now there is a new way to develop reports for Openbravo ERP. Both methods are going to be available, each one with its own strengths.

XmlEngine permits total control of the output page as the template is programmed in the output format, html or fop. Also, with XmlEngine it is possible to include links and ajax technology.

JasperReports uses an intermediate format and permits the ability to export the report to several different formats, html, pdf, excel, csv,... It also has a very advanced development tool (iReport) that makes the design of new reports very easy. The management of the computer resources is better resulting in a faster generation of results for large reports.

This integration has been focused on two main goals, the possibility of uploading a Jasper Report template to the application and defining the parameters needed to be able to open it from the application menu. Additionally, the focus included improving the export of the grid from the windows switching to Jasper Reports and including new output formats.


Creating the Template using iReport

Check how to create the Jasper Report Template using iReport


Adding the Report to Application Dictionary

There are 2 ways to add a new report to the application:


Adding your report to Openbravo


Adding the report to the Menu


Compiling the application

You need to compile the application in order to see the changes. The compile process will copy the .jrxml template to tomcat context, and generate a new actionButton.

ant compile.development -Dtab=XX


Testing the Report

You need a Jasper Report template and this template must be registered in the Application Dictionary, after that follow this steps to test your report:

A zoom in of your report template in iReport:

The same report above, with the layout problem fixed. After recompiling you should get something like this:

Known issues:

Working with parameters

TBD


Working with Sub-Reports

TBD

Retrieved from "http://wiki.openbravo.com/wiki/Developers_Manual/Creating_reports_using_Jasper_Reports"

This page has been accessed 4,984 times. This page was last modified 13:29, 19 September 2008. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.


Category: Development