问题
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