Re: Checking To Avoid Duplicates
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.