Jump to content
Changes to the Jaspersoft community edition download ×

Parameter passing from sub to master report ?


2005 IR Help

Recommended Posts

By: aneesh - aneesh_malhotra

Parameter passing from sub to master report ?

2004-04-15 05:23

Does Jasper support passing of parameter values from a subreport to the master report?

 

I have the totals of few fields retrieved from the same set of tables in two subreports (where clause is different in both the cases). I need the net difference of these fields in the master report.

 

The report requirement is as as follows:

 

SubReport 1

**************

Sub1Total1 Sub1Total2

 

SubReport 2

**************

Sub2Total1 Sub2Total2

 

Main / Master Report

************************

(Sub1Total1-Sub2Total1) (Sub1Total2-Sub2Total2)

 

Is the above output achievable in Jasper?

 

Any help would be highly appreciated.

 

Thanks & regards

Aneesh

 

 

 

 

 

By: Chuck Deal - cdeal

RE: Parameter passing from sub to master report ?

2004-04-15 05:47

If you send the parameterMap of the master in to the subreport, then the subreport could add its total to the map. Then when the subreport ends, the master will still have a reference to the value.

 

 

 

 

By: Teodor Danciu - teodord

RE: Parameter passing from sub to master repo

2004-04-15 08:21

 

Hi,

 

Here you are:

 

http://jasperreports.sourceforge.net/tips.tricks.html#returnvalues

 

Good luck!

Teodor

 

 

 

 

 

By: aneesh - aneesh_malhotra

RE: Parameter passing from sub to master repo

2004-04-15 21:48

Thanks Teodor & Deal

 

(I had a slightly older version of Jasper Tips & Tricks which had only upto item "Excel Color Palette")

 

Aneesh

Link to comment
Share on other sites

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