Jump to content
Changes to the Jaspersoft community edition download ×

Accessing subreport variables from master


2005 IR Help

Recommended Posts

By: Andy Wadsworth - fritztdog

Accessing subreport variables from master

2004-12-02 02:07

I have a master report that I desire to display a total that

is calculated by summing up various fields retrieved from

a subreport. Is there a way for the master report to reference

these fields or values from the subreport?

 

My master/subreport layout is something like

the following where I want Total Size to be

the sum of the individual sizes from the subreport:

Master

{

...

Total Size: 5000

...

SubReport

{

ID Size

A 400

B 3500

C 1100

}

}

 

Unfortuneately, it's not an option to move the

Total display into the subreport...

 

Thanks, -Andy W.

 

 

 

 

 

By: Seth Ladd - picklematrix

RE: Accessing subreport variables from master

2004-12-02 13:00

Does this help?

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

 

I have the same problem, but I'm going to try the above suggestion.

 

Seth

 

 

 

 

By: Andy Wadsworth - fritztdog

RE: Accessing subreport variables from master

2004-12-03 14:51

That worked like a charm. Thanks for the pointer!

-Andy.

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