Crosstab Sorting in JasperReports

无人久伴 提交于 2019-12-22 11:28:09

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/8172301/crosstab-sorting-in-jasperreports

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!