Jump to content
We've recently updated our Privacy Statement, available here ×

usererror

Members
  • Posts

    4
  • Joined

  • Last visited

usererror's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. So say I have a main report with some subreports referenced using the datasource expression ((net.sf.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).subDataSource("/path/to/field") the subreport jrxml has it's XPath set to /path/to/field and the fields description is set to . all of the sub data gets displayed except for the first entry... it's blank. why does it pretend the first entry doesn't exist and how do i get it to display all of the entries?? Yet again, I'm missing something obvious. Any help would be greatly appreciated.
  2. in the subreports properties, the data source is set, and the parameters value of the sub report was manually set to 'name' $F{name}. I'm not sure if this is correct. also a param on the left side was manually created with the same values. this was done in both reports.
  3. THANK YOU!!! yes i am using that data source expression on the main report. the sub report is set to 'don't pass data' (is that correct?).
  4. I'm very new to Ireport. I have a main report and one subreport. The main report pulls the data from the XML file and displays it. The Subreport does this as well. Both reports use the same XML Datasource with the XPath pointing to different places. The problem I have is getting the main report to display the subreports data. Most of the support that I have found for this is done using SQL. What needs to be done when using an XML Datasource? I understand that I need to reference both reports with Parameters. The parameters have been set to the same value in both reports but I only reference the parameter in the Subreport as a field. Any help would be greatly appreciated :)
×
×
  • Create New...