JasperReports中的交叉表排序 [英] Crosstab Sorting in JasperReports

查看:467
本文介绍了JasperReports中的交叉表排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在交叉表中有一个字符串组,它是一个字符串。

I have a column group in a Crosstab that is a String.

它使用字段 SectionName

It uses the field SectionName.

还有一个我要排序的字段, SectionID (整数)。

There is another field, SectionID (Integer), that I want to sort by.

我将 $ F {SectionID} 放在 按表达式排序 ,但出现错误:

I put $F{SectionID} in the Sort By Expression but I get the error:


1。找不到字段:SectionID

此字段位于数据集中。我可以在此字段上添加组并显示它。

This field is in the dataset. I can add a group on this field and display it. When I try to use it in sorting I get the error.

是否可以在列组标题中显示一个字段,但按另一字段排序?

Is it possible to display one field in the column group header but sort by another?

谢谢

推荐答案

是的,您需要为您的SectionID创建另一个行组并确保它首先是在XML中进行调整-然后从可视显示中删除文本框

Yes you need to create another row group for you SectionID and make sure it is first -tweak in the XML - and then remove the text box from the visual display

这篇关于JasperReports中的交叉表排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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