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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to