Jump to content

displaying Subreports with XMLdatasource


nikunj321

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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