使用标题区域中特定字段的可变计算平均值 [英] Use a variable calculated average of a specific field in the Title band

查看:51
本文介绍了使用标题区域中特定字段的可变计算平均值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个变量,用于存储计算出的特定字段的平均值.

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

有什么办法可以在 Title 乐队中使用此变量?当我尝试执行此操作时,我只是在标题中得到 null ,但在 Column Footer 中得到了正确的值.

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.

我看到的这种情况的另一种可能性是,在Java中对其进行预先计算并将其作为参数传递,但我正在努力避免这种情况.

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.

我正在使用3.7.4版中的 JasperReports iReport .

I'm using JasperReports and iReport in version 3.7.4.

推荐答案

变量文本字段都具有属性 Evaluation Time .将两者都设置为报告,即可使用.

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

还要查看 http://jasperforge .org/plugins/espforum/view.php?group_id = 83& forumid = 101& topicid = 67697

这篇关于使用标题区域中特定字段的可变计算平均值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆