I would say you need a sub-report ... and I can't help you there since I did not need sub-reports for the project I did with Jasper Reports a few years ago, plus I have not worked with jasper in quite a while. So you need to look at the Jasper API/docs on sub-reports. I am guessing it will require something like returning the relationship objects as a JRDataSource to feed each sub-report instance.
-Kieran On Jan 20, 2013, at 12:36 AM, Theodore Petrosky <[email protected]> wrote: > I hope someone has worked this out because I am so tired. > > I am creating a report and I recently add a to-many relationship to my EO. > The EO is printing and I understand how to use iReport to add my Fields. but > I don't understand how to get this to_many to print. > > if I add a field of pwoMileStones, I get the Array of objects. So I followed > Kieran's example and used the underscore to get to the attributes. > > so: > pwoMileStones_msDate gives me an Array. Actually $F{pwoMileStones_msDate} in > the page prints as: > > MS Date: (2013-01-30 00:00:00 Etc/GMT, 2013-01-29 00:00:00 Etc/GMT, > 2013-02-27 00:00:00 Etc/GMT) > > I thought I could use a Report Group but that isn't working out. at lease the > docs that I am reading doesn't seem to make sense for this problem. > > I am at a loss. pwoMileStones is a array of objects. the object has two > attributes (msDate, msDescription). > > Do I need a subReport? > > Going to bed. Will pick it up tomorrow. Or rather in a few hours. > > Ted > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
