dgrigglestone Posted March 23, 2014 Share Posted March 23, 2014 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 More sharing options...
hozawa Posted March 23, 2014 Share Posted March 23, 2014 Yes, it does look like someone has done before.Take a look at the following page under "rewindable data source"http://jasperreports.sourceforge.net/sample.reference/datasource/ Link to comment Share on other sites More sharing options...
dgrigglestone Posted March 24, 2014 Author Share Posted March 24, 2014 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 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