nikunj321 Posted May 17, 2009 Share Posted May 17, 2009 I want to display 3 independent subreports into my master report.All the reports are using same xml file and xpath expression but using different fields.Can anyone suggest how should i display all subreports (without passing subdatasource)? Link to comment Share on other sites More sharing options...
andfedotov Posted May 17, 2009 Share Posted May 17, 2009 Not sure what you find wrong with subdatasource, but whatever.. You might also consider using ((net.sf.jasperreports.engine.data.JRXmlDataSource) $P{REPORT_DATA_SOURCE}).dataSource("xpath") - it will select nodes from the top of your xml, not from the current node like subdatasource. Hope it might help... Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted May 18, 2009 Share Posted May 18, 2009 What andfedotov says is the right answer. Karma +1 ;-) 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