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

creating a new subreport for the first time


law

Recommended Posts

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:01



Post Edited by liw at 08/01/2012 23:02



Post Edited by liw at 08/01/2012 23:47
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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