Jump to content
Changes to the Jaspersoft community edition download ×

Subreport Data Being Passed


john.oconnor_1

Recommended Posts

Bare with me since I have only been using iReport for 3 weeks but I have made significant progress in learning how this works.

Scenario:

I have a master report and a sub report.  If I run my report without parameters being passed in - based on a trace - looks like no data is getting into the subreport.  If I provide the two parameters for the main report then the subreport will print.  On the master report in the header group where the subreport resides, I am printing the two fields just to validate the data is in the group (was not sure if this was necessary).  In my parameters for the subreport I am calling it using $F{variable_name} .  Also my sql queries from both reports are returning data.  I have shared my work with three other people at the office with more time using iReports and they cant figure it out.  

So to clarify the main issue is that if parameters are given at main report creation, the subreport will print.  If no data is given for the main report, and the query finds this data for the subreport instead then subreport runs perfectly.

If you need any additional info, let me know.  Thank you ahead of time.  P.S. - Not always the best at explaining technical stuff :-)

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