OFBiz BIRT Overview
Welcome to OFBiz BIRT. The part installed within OFBiz allows you to run the reports which are prepared using Eclipse with the BIRT plugin installed.
As a demo we have prepared a product report as an example.
Look at the Eclipse BIRT web site for more information.
This is a short document to help you get started using BIRT to make a report.
1. HTML tabWhen you click on this tab. It will show the complete report in an iframe.2. PDF tabWhen you click on this tab. It will render the report in a pdf format3. Send any format through Mail tabWhen you click on this tab. It will show a form that can send the report per email.Examine the Example Report
The example report that run in OFBiz is in the file component://birt/webapp/birt/report/product.rptdesign. When you have started Eclipse BIRT, open this document.
This report show how a report receives data from OFBiz through Scripted Data Source using the OFBiz delegator.
This report has the scripted data source name "OFBiz" and the data set that use the script data source name is called "Product".
Open the script editor for Product data set, it uses the delegator object query data from the Product entity.
A report that runs on the OFBiz platform can use the delegator object, dispatcher object, security object and classpath of OFBiz environment in the script.Important file for using BIRT's jsp tags
If a web applications wants to use the report in a screen, copy birt.tld file to [WEB APP]/WEB-INF/ directory ant assign in in ftl
like <#assign birt = JspTaglibs["/WEB-INF/birt.tld"]/>Important tag's attribute in ftl.
The BIRT uses some servlets for rendering the report.
When you use the report tag in a ftl file you must add a specific "baseURL" attribute to the birt webapp for these resources like baseURL="/birt".
How do I send parameter to report.If a report is to be rendered through a view map, you can send a parameter through attribute of the request object, the attribute's name is "birtParameters" which is a map.If a report is to be rendered through an e-mail, you can send the parameter through the service's parameter name called birtParameters.Which are the supported content types?text/htmlapplication/pdfapplication/vnd.ms-excelapplication/vnd.ms-wordapplication/vnd.ms-powerpoint