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

Mapping result set to rewindable datasource


dgrigglestone

Recommended Posts

Hi .. I have a very complex (expensive) query that needs to get passed to 4 sub-reports. Since a JDBC results set is not rewindable, I'm looking for a way that I can map the JDBC result set once into a rewindable data source and then pass that to the subreports.

This sounds like something that someone else must have tried to solve before, so does anyone have a solution that can share?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

What was the explicit example you are referring to. I was aware of the section you pointed me to, but alas I do not find any rewindable datasource that can take a JDBC datasource (http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JRResultSetDataSource.html) and map it to a rewindable datasource .. nor can I find any pointer to logic that will do so. I am looking for an explicit example. If I end up writing myself, I'll try to post back here .. but hopefully someone has real code I can reuse.
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...