开发者

How to reference a list in a field object in JasperReports

开发者 https://www.devze.com 2023-01-14 00:02 出处:网络
I\'ve got a datasource object that contains a Collection of other objects. For example I\'m returning a Manager object that contains a List of Employees.

I've got a datasource object that contains a Collection of other objects. For example I'm returning a Manager object that contains a List of Employees.

I'm returning back JRDataSource object of type Manager to the actual jasper report. I'm unclear开发者_Python百科 on how I can loop through the employees in the jasper report itself using the $F field tags.


I use a subreport to show the objects of the Collection use new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{the collectin}) as the subreport's data sourse expression

0

精彩评论

暂无评论...
验证码 换一张
取 消