• 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: Checking To Avoid Duplicates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking To Avoid Duplicates


  • Subject: Re: Checking To Avoid Duplicates
  • From: Art Isbell <email@hidden>
  • Date: Wed, 19 Feb 2003 10:51:50 -1000

On Wednesday, February 19, 2003, at 04:13  AM, Jonathan Fleming wrote:

tbClient(toMany)>> <(toOne)tbClientDatas
EOModel Attributes:
FileName, FilePosition
The FilePosition is the property we are concerned with, for this we have a WOPopUpButton populated with values: 01 logo, 01 Thumb1, 02 Thumb2, 03 Thumb3, 04 Thumb4, etc.
What I want to avoid is any one fileName containing the same filePosition, so how do I do a check just on the master detail objects (tbClientDatas) of an item (tbClient) to avoid this?

tbClientDatas is an array of objects. EOQualifier has a couple of static methods that filter an array based on a qualifier.


EOQualifier qualifier = EOQualifier.qualifierWithQualifierFormat("filePosition = %@", new NSArray(newFilePosition));
NSArray objects = EOQualifier.filteredArrayWithQualifier(tbClientDatas, qualifier);


If objects is empty, tbClientDatas doesn't contain an object with a filePosition value of newFilePosition.

Art
http://homepage.mac.com/aisbell/
_______________________________________________
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: 
 >Checking To Avoid Duplicates (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: Re: Basic EOModeler / WebObject tutorial ( newbie )
  • Next by Date: Re: Debugging WO5.2 apps with December 2002 tools and OSX 10.2.4
  • Previous by thread: Checking To Avoid Duplicates
  • Next by thread: need a hierarchical collapsible selectable wocomponent
  • Index(es):
    • Date
    • Thread