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

How to passing parameter from sub dataset to master report?


stravarius

Recommended Posts

Hi

I Know how to passing parameter master to sub

but I dont how to passing the parameter sub to master

for example I have two field

master report field is field1 subdataset field is field2 those are differrent query

i want to use that Print When Expression ->

 $P{parameter(subdataset's value)}.equals{$F{field1} on master report

or $F{filed1}.equals($P{subdataset's parameter})

 

thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

A subdataset cannot pass parameters to the main report flow.

If you need to do that you will need to use SUBREPORTS instead of Datasets.

Here is a good tutorial on using subreports in general: http://community.jaspersoft.com/wiki/subreports-jaspersoft-studio#Creation_of_the_Second_Subreport and this one http://community.jaspersoft.com/wiki/subreports

In this guide http://community.jaspersoft.com/documentation/ireport-ultimate-guide on Chapter 17.3 (page 324) it explains in detail how passing  values from the subreport to the main report:

Link to comment
Share on other sites

  • 4 weeks later...

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