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

Data sets for sub reports


bhuvaneshwari.m

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi there - 

A data source is a consumable object that is used for feeding a report only once.  As stated in the iReport Ultimate Guide:
 
"For JasperReports to retrieve data and fill the subreport, you have to set the subreport data source. Usually we have three options:
 
Use an SQL query and the same JDBC connection as the parent (super-easy case); or
 
Use a different type of data source (such as an XML file) and some data source elements to create an expression to create or pass the required data source instance.
 
In very special circumstances, we can pass no data at all to the subreport. We will explain with this last option in depth since it provides a way to simulate inclusion of static portions of documents (like headers, footers, backgrounds, and so on)."
 
Good luck with your report.
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...