• 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: Chuck Hill <email@hidden>
  • Date: Tue, 14 Feb 2006 08:15:57 -0800

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
  • Follow-Ups:
    • Re: EOQualifier on a toMany attribute
      • From: Dev WO <email@hidden>
    • Re: EOQualifier on a toMany attribute
      • From: Arturo Perez <email@hidden>
References: 
 >Re: EOQualifier on a toMany attribute (From: Martin Fled <email@hidden>)
 >Re: EOQualifier on a toMany attribute (From: Dev WO <email@hidden>)

  • Prev by Date: Re: WebObjects 5.3.1 Redirect bug?
  • Next by Date: Re: EOQualifier on a toMany attribute
  • Previous by thread: Re: EOQualifier on a toMany attribute
  • Next by thread: Re: EOQualifier on a toMany attribute
  • Index(es):
    • Date
    • Thread