Jump to content

Recommended Posts

Posted

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Posted

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:

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