Re: FetchSpec seems to ignore qualifier
Re: FetchSpec seems to ignore qualifier
- Subject: Re: FetchSpec seems to ignore qualifier
- From: David Griffith <email@hidden>
- Date: Thu, 04 Mar 2004 01:20:51 +0100
Just tired I guess :-( After a while I noticed a spelling error in the
fetchSpec - langName was misspelled langname.
Dave.
> HI all,
>
> There is a fetchSpec in Language which is:
>
> LangName = $langName
>
> I have the following code:
>
> EOFetchSpecification fs = new EOFetchSpecification();
> fs = fs.fetchSpecificationNamed("getLanguageFromString",
> "Language");
> NSMutableDictionary dictionary = new NSMutableDictionary();
> dictionary.takeValueForKey(languageName, "langName");
> fs = fs.fetchSpecificationWithQualifierBindings(dictionary);
>
> NSMutableArray languages= new
> NSMutableArray(ec.objectsWithFetchSpecification(fs));
>
> Can anyone tell me why I am getting all records instead of the matching
> ones?
>
> Regards,
> Dave.
> _______________________________________________
> 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
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.