• 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
multiple value in fetchspec's qualifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple value in fetchspec's qualifier


  • Subject: multiple value in fetchspec's qualifier
  • From: Goh Keng Boon <email@hidden>
  • Date: Mon, 28 Jun 2004 12:37:59 +0800

Hi,

I got a fetchspec in EOModel that has a qualifier (usercode =
$usercode), i placed the desired usercode into my NSMutableDictionary
and
call
EOFetchSpecification.fetchSpecificationNamed("fetchByCode","user"); in
order to have a fetch spec that complete this statement,
for example usercode = 1

If i would like to fetch usercode 1,2,3 how can i assign all these
value to my NSMutableDictionary? I tried to use NSArray inside
the dictionary but failed. And ultimately, what i need is a fetch spec
that returns values based on my qualifiers(with an array of value).


Another question, I got this table called "book" with to many
relationship to another table called "author",
which means i got something like book.authorinvolve() which is an
NSArray. I got problem when trying to specify
the qualifier in my fetch spec(i tried to fetch all books that this
particular author involved), and i believe is
because of the to many relationship. What i tried to do is :

relationship.authorname= $name

where 1 book record can have many author record. How can i go around
this problem? Thanks.


KB
_______________________________________________
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.


  • Prev by Date: Re: specifying number of rows to fetch
  • Next by Date: Re: specifying number of rows to fetch
  • Previous by thread: Providing a page title with non-D2W component in D2W page
  • Next by thread: multiple value in fetchspec's qualifier
  • Index(es):
    • Date
    • Thread