QueryMatch with more than one value for key

Holzner Roman <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hi list

Once again a question to D2W.

Well I have a special entity LookupValue in my project to which no  
other entity has a a modeled relationship to. In most of the time  
this entity is used to display lookup-values (values, that are really  
often used) or to translate Strings out of the database to the  
current language. With a entry in the userInfoDictionary of the  
attribute, I can see, that this attribute has a relation to this  
LookupValue-Entity. The attribute itself stores a key (the lookupKey)  
to save the relation.

To make that a little bit clearer I make you an example:

I've got a permission-Entity which has a description as attribute.  
Because the permission does not change, but it's displayString in an  
other langue should, the permission entity has a description  
attribute which stores the key to the lookupValue. In combination  
with the language, I can display it in every language I want  
(normally in the application language). So far so good.

For the adimistration part, we use D2W. And now troubles comes on.  
Because I want to search the permission objects by it's description  
and not by it's key. That means that the user can give the  
description-search-string (which stands in the Lookup-entity) and he  
get's the permission string. For that I created a new D2Wcomponent  
(for a query) which has nothing more than a textfield inside. Over  
the d2wContext I get the attribute and so I have the  
userInfoDictinary too, so I now that it has a relationship.

When the user makes an entry, I go through the lookupValue-entity and  
take all of them out, which have a value like the given string. All  
these lookup-objects have a key which point back to permission  
objects. And here is the problem. Because  I want all of the  
permission objects which have one of these keys. That would mean I  
should make a fetch like:
	permissionAttribute = key1 or permissionAttribute = key2 or  
permissionAttribute = key3 or permissionAttribute = key4

I tried so go over the the displayGroup's queryMatch but i did not  
succeed. So does somebody else have an idea how I could solve this  
problem?

I hope I have explained my problem well enough to understand it. I  
know it sounds a little bit complicated, but I do not find a better  
way to explain it at the moment. So if you do not answer because you  
don't understand I, I'm glad to try to explain it in another way or  
give some more informations.

Thanks for helping me

Roman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.