cstuckless Posted September 4, 2009 Share Posted September 4, 2009 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 More sharing options...
walmillard Posted September 11, 2009 Share Posted September 11, 2009 In your subreport open the properties of the $F{CONNECTION_NAME} element within the Detail band and change the "Evaluation Time" property to "Now".Should fix itLuck! Post Edited by walmillard at 09/11/2009 02:29 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now