Re: EOQualifier on a toMany attribute
Re: EOQualifier on a toMany attribute
- Subject: Re: EOQualifier on a toMany attribute
- From: Dev WO <email@hidden>
- Date: Tue, 14 Feb 2006 17:34:13 +0100
Hi Chuck,
not bad for the little coffee;)
"contains" just work perfectly:)
Thanks a lot....again
Xavier
Early. Little coffee. May still be delusional.
On Feb 14, 2006, at 4:32 AM, Dev WO wrote:
Hello Martin,
First of all it should be
argsStorage.addObject(selectedConnector);
I changed that:)
not an array. Secondly, are all those objects:
selectedFormFactor, selectedFormType, selectedConnector in same
editing context as the query editing context is?
I "think" yes, specially as when I'm only using the first two
qualifier arguments it works.
Third: did you checked SQL statement for this qualifier?
I fact I was just trying to do that after your answer, but I'm
filtering an array in memory, so I'm not sure the SQL apply to
that...
so I feel pretty much stupid to not have written the entire code,
here it is:
argsStorage = new NSMutableArray();
argsStorage.addObject(selectedFormFactor); // this is a toOne
argsStorage.addObject(selectedFormType); // this is a toOne
argsStorage.addObject(selectedConnector); // this is the toMany
that doesn't return any results, I'm just selecting one connector
in the UI with a WOPopup
qualStorage = EOQualifier.qualifierWithQualifierFormat
("(productFormFactor = %@) and (productFormType = %@) and
(productExternalConnectors = %@)", argsStorage);
I'm thinking that this should be
(productExternalConnectors contains %@)
Also, I was under the impression that this just does not work at
the RDBMS level, contains or =. At least for most databases. I
recall that it once did work with FrontBase via some tweaking of
the SQL by the plugin. Take a look at
ExistsInRelationshipQualifier on http://homepage.mac.com/i_love_my/
code.html
OK, back to this coffee.
Chuck
productList = new NSMutableArray
(EOQualifier.filteredArrayWithQualifier(productStorageList,
qualStorage));
--
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:
40anazys.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Coming in 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/
practical_webobjects
_______________________________________________
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