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

Subreport troubles


cstuckless

Recommended Posts

Hi All,

I am very new to the Jasper reporting and iReports projects, so its no surprise that I have run into a roadblock when it comes to subreporting.

I am generating a JRXmlDataSource with an input stream (see xml file) and selectExpression "/project".

I have one master report that outputs some information about the project element then calls upon a second subreport to loop over all connection elements in the project.

The problem I am encountering is that the subreport loops the correct amount of times but always displays the same information. ie. if there are 10 connections in the project, the subreport will display 10 times but show the same information each time and not the information for each of the 10 individual connections.

Here is the expression that I am using when calling the subreport, is it correct?

((net.sf.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).dataSource("/project/connection")



Post Edited by cstuckless at 09/04/2009 18:15
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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