Custom Parser Subreporting

Bug #1037481 reported by DotComERP
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openobject-jasper-reports
New
Undecided
Unassigned

Bug Description

Hello, I'm having some problems and I hope you could help me!

I'm trying to create a subreport in Openerp using jasperreports and a custom parser. The main reports appears great but no data is sent to the subreport. After some research I found this page: http://www.zbeanztech.com/blog/jasper-report-using-wizard fom Zesty Beanz. After implementation on the report generation it gives the following error: " openerp.service.web_services: Exception: ('Report Error', 'Failed to invoke method execute in class com.nantic.jasperreports.JasperServer: Error evaluating expression : \n\tSource text : ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("sub_report")') "
PS: sub_report is the field name containing the data to the subreport!

Revision history for this message
Zesty Beanz Technologies Pvt Ltd (jo0thlt) wrote :

First of all add '//' before the subreport field name. For example ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("//sub_report_field_name")')

Then check the datasource you have selected is xpath. Then in the python file there is a function called generate_datasource, which returns empty dict. Please change it to 'xml_records'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.