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

Combine sql and Xpath datasources in one report


dretwk

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I found a solution, create subreport with xml data source in masterSubreport, use connectionType "Use a data source Expression" and apply data source expression like this:

new net.sf.jasperreports.engine.data.JRXmlDataSource("/path_to_xml_file/file.xml").dataSource("/root/field[@id="+$F{FIELD}+"]")[/code]

 

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