Subreport on different datasource than Master

I've found where to set the new datasource expression but I'm not sure with the format.

If I'm correct this is the format:
((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{New_REPORT_DATA_SOURCE})

How is the New_REPORT_DATA_SOURCE specified?
How can I reference the already created Datasources from iReport?

Thanks in advance!
javydreamercsw's picture
Joined: Jul 17 2006 - 9:46pm
Last seen: 6 years 5 months ago

2 Answers:

javydreamercsw wrote:
I've found where to set the new datasource expression but I'm not sure with the format.

If I'm correct this is the format:
((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{New_REPORT_DATA_SOURCE})

How is the New_REPORT_DATA_SOURCE specified?
How can I reference the already created Datasources from iReport?

Thanks in advance!


Is this possible or I'm just dumb?
javydreamercsw's picture
Joined: Jul 17 2006 - 9:46pm
Last seen: 6 years 5 months ago
6 years later, I've the same doubt.did you get the solution?
bookworm's picture
342
Joined: Feb 5 2012 - 8:35pm
Last seen: 11 years 1 month ago
Feedback