jholden699 Posted February 2, 2009 Share Posted February 2, 2009 I'm not sure if this belongs here or in an iReport/Jasper forum but since this will ultimately be on JasperServer this should work...I would like to make a report that queries from one database connection, then uses information from that query as a parameter to a subreport querying off of a different connection. The sub report runs fine independently, but when added to the parent report, it doesn't do anything at all. I think it's because it's not getting the right connection.Is there any way to accomplish this? Link to comment Share on other sites More sharing options...
jholden699 Posted February 4, 2009 Author Share Posted February 4, 2009 Does anyone have any input on this? It seems like it cannot actually be done? Link to comment Share on other sites More sharing options...
clhubert Posted February 4, 2009 Share Posted February 4, 2009 About a quarter of the way into this video.... It shows you how to make a subreport .http://ireport-tutorial.blogspot.com/2008/10/ireport-subreport.htmlAt a high level.... You will want to pass in the the fields into the subreport as parameters. When you define a sub report you define the parameters you're passing into it (if any).Hope this helps. Link to comment Share on other sites More sharing options...
mkusterm Posted February 6, 2009 Share Posted February 6, 2009 I have opened a different connection on a subreport byselecting "use Connection Expression" on the subreport taband new DataSource(user,pw, url...).getConnection() m 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