Re: force D2W query pages to use "contains" operator
Re: force D2W query pages to use "contains" operator
- Subject: Re: force D2W query pages to use "contains" operator
- From: Tim Worman <email@hidden>
- Date: Wed, 25 Apr 2012 12:27:30 -0700
David:
That's great and looks like exactly what I need. I'll give it a try!
Thanks,
Tim
On Apr 25, 2012, at 11:00 AM, David Holt <email@hidden> wrote:
> Actually if you're talking about an attribute in an Entity's query page you can control what is seen in a specific query pull down with a simple rule:
>
> 100 : propertyKey = 'abstractSummary' => qualifierOperators = ("contains") [com.webobjects.directtoweb.Assignment]
>
> David
>
> On 2012-04-25, at 8:47 AM, Ramsey Gurley wrote:
>
>> You're talking about the query all page? And that double WOPopup thing? There's no control over what operator is selected in that component. You can only set what operators appear using the relationalQualifierOperators key. The attribute is selected using D2WUtils.smartDefaultKeyForEntity. That method is undocumented and uses magic strings :-P It favors attributes like "name", "title", "description".
>>
>> On Apr 25, 2012, at 12:07 AM, Tim Worman wrote:
>>
>>> D2W experts:
>>>
>>> Is there a RHS key/value pair that will control what the default search operator is for an attribute on a query page? On an entity "search all" page, I have attributes where I don't want my users to have to select the pop-up button in order to switch to the "contains" option.
>>>
>>> Thanks much,
>>>
>>> Tim Worman
>>> UCLA GSE&IS
>>> _______________________________________________
>>> 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
>>
>>
>> _______________________________________________
>> 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
>
_______________________________________________
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