Forums Register Login

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

+Pie Number of slices to send: Send
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
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1063 times.
Similar Threads
How to pass Map parameter to a subreport from a main report -----JasperReports
Open crystal report in JSP
JasperReport sureport inside subreport
sub report not displayed.
Query inside Jasper Reports
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:02:48.