• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WORepetition Woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: MacOSX 10.3 Server deployment (From: Chuck Hill <email@hidden>)
 >Re: MacOSX 10.3 Server deployment (From: Pierre Frisch <email@hidden>)
 >WORepetition Woes (From: "Janice M. Cheung" <email@hidden>)
 >Re: WORepetition Woes (From: Jonathan Rochkind <email@hidden>)

  • Prev by Date: Re: passing parameters to an action
  • Next by Date: Re: enable hot code replace possible?
  • Previous by thread: Re: WORepetition Woes
  • Next by thread: Storing Credit Card Data
  • Index(es):
    • Date
    • Thread