• 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: EOQualifier on a toMany attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOQualifier on a toMany attribute


  • Subject: Re: EOQualifier on a toMany attribute
  • From: Martin Fled <email@hidden>
  • Date: Tue, 14 Feb 2006 03:52:49 -0800 (PST)

Hello Xavier,
 
>
> Hello Jerry,
>
> > Hi, Xavier,
> >
> > It would help to know how your code is failing, but I don't see why
> > your code wouldn't work so long as "arg" is an NSArray.
> The code is not failing in fact, it's just there's no result return.
> >
> > If arg is an instance of Connector rather than an NSArray,
> then change
> > your qualifier generating statement to the following:
> >
> > EOQualifer myQualifier = EOQualifer.qualifierWithQualifierFormat
> > ("connectors = %@", new NSArray(arg));
> Actually I was trying with an instance of connector, I also
> tried with an NSArray of connector but no luck.
>!
> Here's my code:
> argsStorage = new NSMutableArray();
> argsStorage.addObject(selectedFormFactor); // this is a toOne
> argsStorage.addObject(selectedFormType); // this is a toOne
> argsStorage.addObject(new NSArray(selectedConnector));
> // this is the toMany that doesn't return any results
> qualStorage = EOQualifier.qualifierWithQualifierFormat
> ("(productFormFactor = %@) and (productFormType = %@) and
> (productExternalConnectors = %@)", argsStorage);
>
> Maybe that's easier to understand than my description;)
>
> Thanks
>
> Xavier
 
First of all it should be
 
 argsStorage.addObject(selectedConnector);
 
not an array. Secondly, are all those objects:  selectedFormFactor, selectedFormType, selectedConnector in same editing context as the query editing context is?
 
Third: did you checked SQL statement for this qualifier?
 
--
Martin Fleder


Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: EOQualifier on a toMany attribute
      • From: Dev WO <email@hidden>
  • Prev by Date: Re: a two simple question... :) please participate!
  • Next by Date: RE: a two simple question... :) please participate!
  • Previous by thread: Re: EOQualifier on a toMany attribute
  • Next by thread: Re: EOQualifier on a toMany attribute
  • Index(es):
    • Date
    • Thread