Re: WORepetition Woes
Re: WORepetition Woes
- Subject: Re: WORepetition Woes
- From: Chuck Hill <email@hidden>
- Date: Thu, 08 Jan 2004 11:04:22 -0800
- Organization: Global Village Consulting, Inc.
Are you getting these duplicate values from a fetch? If so, see the
method setUsesDistinct(boolean) in EOFetchSpecification:
Sets whether duplicate objects or records are removed after fetching.
If flag is true they are removed (that is, proper sets are returned).
If flag is false they aren't (multisets are returned).
EOFetchSpecifications by default don't use distinct.
Chuck
Jonathan Rochkind wrote:
You need to eliminate the duplicate values BEFORE you pass the NSArray
as a list to the WORepetition. Depending on the nature of the
'duplication', one simple way to do this is:
NSArray originalListWithDuplicates; //assume exists
NSSet uniqueingSet = new NSSet( originalListWithDuplicates );
NSArray newListWithoutDuplicates = uniqueingSet.allObjects();
At 11:27 AM -0500 1/8/04, Janice M. Cheung wrote:
Greetings!
Happy New Year!
I have a question concerning WORepetitions.. is it possible to
suppress duplicate
values in a WORepetition? There is a very rigid template that our
queries must
adhere to, and the return of duplicate values are wreaking havoc on
the alignment
of our on-line phonebook.
(The placement of a WORepetition within a WORepetition is also
having similar
adverse effects on table alignment). If anyone has any
suggestions or advice, I would be eternally grateful!
Best wishes for the new year!
Janice :-)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.