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

Populating subreports in iReports


vndkbarlow

Recommended Posts

 Hiyas...

 

I am new to iReports and need to exend a report that someone else developed.  The original report wraps a List into a JRDataSource class and uses that as a data source for the report.  Each record in the List is a line item.

Due to the modifications I have to make... I need to add another dimension to the report.  I found the tutorial on subreports which is exactly what I am looking to do so I know it's possible.  I just need some help figuring out how to set the report up in my particular use case.

The tutorial uses the data source of the master report (which happens to be a DB connection) to execute the query and the input parameter to restrict the results to the relevent items for the record.  

If my datasource is a list... can I use a property in the line item object to store the subreport data (as a set or list) and reference that data in the subreport or do I need to set a separate record set somehow?

Thanks.

Keith

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...