JasperReports 中的交叉表排序
我在交叉表中有一个列组,它是一个字符串。
它使用字段SectionName
。
我想根据另一个字段 SectionID
(整数)进行排序。
我将 $F{SectionID}
放入 Sort By Expression
但出现错误:
1. 未找到字段:SectionID
此字段位于数据集中。我可以在此字段上添加一个组并显示它。当我尝试使用它进行排序时,出现错误。
是否可以在列组标题中显示一个字段,但按另一个字段排序?
谢谢
I have a column group in a Crosstab that is a String.
It uses the field SectionName
.
There is another field, SectionID
(Integer), that I want to sort by.
I put $F{SectionID}
in the Sort By Expression
but I get the error:
1. Field not found : 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?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您需要为您的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