Jump to content

Recommended Posts

Posted

I am currently working in a report that has 3 levels of subreports in addition to the main jrxml file. The second level is not filtering correctly as it needs to filter based on information found in the first level subreport and is currently just using a query to pull any information that fits it's columns in the report. How would I go about getting the information I need to filter the data correctly. 

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

The subreport element has a property to pass in parameters values from the parent report to the subreport.  Those values can be any legal expression like a field, variable or parent report parameter.

Posted

I'm not sure if I made this clear enough. The reason I ask is because the subreports are not put in using the wizard like every resource I have found on the internet shows how to fix this. They seem to be linked together using a similar line of code: 

<propertyExpression name="net.sf.jasperreports.export.html.id"><![CDATA["summary_&MAINREPORT=JobActivityReport_Level2Subreport"]]></propertyExpression>

 

I took out a lot of code but that is the link expression to link the level 1 subreport to the level 2, however I need to link level 2 to something contained in the main page as well as the information found in level 1. That is where I am lost

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