Sounds like a Wonder Wiki page to me.

On Jan 21, 2010, at 1:17 PM, David Holt wrote:

Hi all,

I needed to include an OR search on a component that had been created using the queryMatch functionality of WODisplayGroup.

As you know if you create such things, by default any values included in the queryMatch search fields are joined in "AND" searches by default. This is a limitation that I've tried to work around without resorting to programatically setting the qualifier and fetch on the displayGroup for a very long time.

In my travels I discovered that ERXDisplayGroup in Wonder allows you to add qualifiers to the WODisplayGroup's generated qualifier. Instead of using queryMatch on the relevant fields I used a local variable to then programatically create the OR qualifier I needed. If you use the method "setQualifierForKey" you add your new qualifier(s) to a dictionary called _extraQualifiers. These are added to the generated qualifierFromQueryValues just before the displayGroup is qualified. After the DG is qualified, you may want to reset the _extraQualifiers dictionary using clearExtraQualifiers.

Anyway, it is really slick because it saved me having to code the search page by hand and I wanted to point it out since I didn't see anything obvious in the archives about the use of these methods.

David
_______________________________________________
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/chill%40global-village.net

This email sent to [email protected]

--
Chuck Hill             Senior Consultant / VP Development

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 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