jaspersoft how to display values from list

感情迁移 提交于 2020-01-24 23:47:12

问题


I'm using iReport 5 to generate PDF. I got few lists containing some objects to display, and it's the easy part. I got stuck on displaying values from List<String>.
I pass it as a parameter, I configured data source correctly, but have no idea how to name the string.
When I got list of objects it's easy - if you want to get field xxx from obcject you use $F{xxx} and it works, but how to display a object? I tried $F{_this}, but got error saying that it's non recognizable.


回答1:


You were close. Creating a field called _THIS should work.



来源:https://stackoverflow.com/questions/23151030/jaspersoft-how-to-display-values-from-list

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