Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use a variable calculated average of a specific field in the Title band

I have a variable which stores the calculated average of a specific field.

Is there any way to use this variable in the Title band? When I try to do it, I just get null in the Title but the correct value in the Column Footer.

The only other possibility for this I see is, to precalculate it in Java and pass it as an argument, but I'm trying to avoid that.

I'm using JasperReports and iReport in version 3.7.4.

like image 978
YingYang Avatar asked Dec 30 '25 06:12

YingYang


1 Answers

The Variable and the Text Field both have the property Evaluation Time. Set it to Report for both and it works.

Also look at http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=67697

like image 75
Kani Avatar answered Jan 03 '26 09:01

Kani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!