Subreports in different data sources

Sorry for the double post but there's no way to see the views to the posts in this forum.


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!

Also...

Is there another way to get reports from different datasources in one report?

:whistle:
javydreamercsw's picture
Joined: Jul 17 2006 - 9:46pm
Last seen: 6 years 8 months ago

2 Answers:

I read about subdatasets, but i think that they are only for Charts and Crosstabs, not for Main or Subreport. But maybe something has changed since iReport 1.1.0?

I also need to know if it is possible to use more than one Datasource in a Report or if I have to design and build a special Database just for Reporting.
JulEgner's picture
1038
Joined: Aug 3 2006 - 10:59pm
Last seen: 16 years 10 months ago
The dataset is also available for reports, at least in 1.2.5. Try it!
javydreamercsw's picture
Joined: Jul 17 2006 - 9:46pm
Last seen: 6 years 8 months ago
Feedback
randomness