stravarius Posted April 15, 2014 Posted April 15, 2014 HiI Know how to passing parameter master to subbut I dont how to passing the parameter sub to masterfor example I have two fieldmaster report field is field1 subdataset field is field2 those are differrent queryi want to use that Print When Expression -> $P{parameter(subdataset's value)}.equals{$F{field1} on master reportor $F{filed1}.equals($P{subdataset's parameter}) thanks
marianol Posted April 16, 2014 Posted April 16, 2014 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/subreportsIn 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:
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