Custom Parser Subreporting
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://
PS: sub_report is the field name containing the data to the subreport!
First of all add '//' before the subreport field name. For example ((net.sf. jasperreports. engine. data.JRXmlDataS ource)$ 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'