Re: EOF objects and NON NULL validation
Chuck Hill <[email protected]> Thu, 06 Nov 2003 15:52:40 -0800
| Newsgroups | gmane.comp.web.webobjects.eof,gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
One option is to create an NSComparator on Timecard to sort in this order (first by invoice, then by project, and finally by timecard date). Fetch all the timecards to report on (generate invoices for), then sort them using NSArray.sortedArrayUsingComparator(). Finally, you can use one repetition and some conditional logic for the reporting breaks. Chuck At 01:40 PM 06/11/2003 -0700, Ric Turley wrote: >I am trying to recreate invoices originally created in a FMP database in >WebObjects. The model relates timecards to invoices and to projects like >this: > > invoice <-->> timecard <<--> project > >The invoice needs to look like: > > Invoice info > Project info > 1st Timecard for Project > next Timecard for Project > next Timecard for Project > Project info > only Timecard for Project > Project info > 1st Timecard for Project > next Timecard for Project > >In WO, I am using 2 repetitions to display the data. What is the best way >to organize the entities by invoice, then project and then timecard. It >seems like this should be easy, but I just can't get there. > >Thanks, >Ric Turley >Zarac Software >Custom Software Development >http://www.zarac.com >Office: (303) 642-3106 > > >_______________________________________________ >WebObjects-dev mailing list >[email protected] >http://www.omnigroup.com/mailman/listinfo/webobjects-dev > -- Chuck Hill [email protected] Global Village Consulting Inc. http://www.global-village.net