File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes JasperReports:  passing the current item in a list of objects into utility methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JasperReports:  passing the current item in a list of objects into utility methods" Watch "JasperReports:  passing the current item in a list of objects into utility methods" New topic
Author

JasperReports: passing the current item in a list of objects into utility methods

Dorcas Rebanha
Greenhorn

Joined: Apr 04, 2007
Posts: 18
I'm new to JasperReports, so any help is appreciated!

I have a report, allMembersSubreport, with a parameter that is an ArrayList of objects.
<parameter name="membersOnly" class="java.util.List"/>

I have a subreport in the detail band, EachMemberDetail, that must pass each item from the list into various utility methods, to drill down and retrieve info in String format.

Should I pass a subreportParameter into the next subreport? eg. <subreportParameter name="thisMemberDetail">
How should I specify a subreportParameterExpression that is a single item from the "membersOnly" list? Or is there another way to accomplish the goal?

Thanks for any help.

Dorcas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JasperReports: passing the current item in a list of objects into utility methods