law Posted August 1, 2012 Share Posted August 1, 2012 Hi all, I'm attempting to create a subreport, just as a test to see how it works. Here is what I have:In my main report the sql is:SELECT distinct name FROM account order by name.Then I add the "subreport" icon into the main report.My subreport sql is:SELECT id, division FROM account where name = $P{name}I build both reports and run the main one. For some reason I only see main report data, nothing from sub report. Am'I missing something trivial here? Found it - had to edit Connection Expression Post Edited by liw at 08/01/2012 23:01Post Edited by liw at 08/01/2012 23:02Post Edited by liw at 08/01/2012 23:47 Link to comment Share on other sites More sharing options...
law Posted August 1, 2012 Author Share Posted August 1, 2012 Post Edited by liw at 08/01/2012 22:58 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