Subject | Re[2]: [IBO] IBO Search with 'OR' |
---|---|
Author | Marcin Bury |
Post date | 2016-01-26T16:09:17Z |
Hi Geoff
Thank you for your suggestions.
The sample with two edits is only for the purpose of this message ;-)
Actually I need two IB_LookupEnh or IB_ComboEnh binded to the same
DataField so an user could select one or two values for the search
criteria. That's why I'm looking for some 'OR' solutions.
I will take a closes look at OnProcessSearchBuffer event.
Maybe Jason will add his 0.02$ ;-)
Regards
Marcin
------ Wiadomość oryginalna ------
Od: "Geoff Worboys geoff@... [IBObjects]"
<IBObjects@yahoogroups.com>
Do: IBObjects@yahoogroups.com
Wysłano: 26.01.2016 12:03:47
Temat: Re: [IBO] IBO Search with 'OR'
Thank you for your suggestions.
The sample with two edits is only for the purpose of this message ;-)
Actually I need two IB_LookupEnh or IB_ComboEnh binded to the same
DataField so an user could select one or two values for the search
criteria. That's why I'm looking for some 'OR' solutions.
I will take a closes look at OnProcessSearchBuffer event.
Maybe Jason will add his 0.02$ ;-)
Regards
Marcin
------ Wiadomość oryginalna ------
Od: "Geoff Worboys geoff@... [IBObjects]"
<IBObjects@yahoogroups.com>
Do: IBObjects@yahoogroups.com
Wysłano: 26.01.2016 12:03:47
Temat: Re: [IBO] IBO Search with 'OR'
>Hi Marcin,
>
>You are probably already aware, but just in case:
>
>IBO supports: IN(search1text,search2text)
>in its edit control which would give the same effect as
>an OR.
>
>Or you can set your own syntax in OnProcessSearchBuffer
>(in IB_Connection). I do this to implement a shorthand
>IN syntax using: search1text|search2text
>
>--
>Geoff Worboys
>Telesis Computing Pty Ltd
>
>
>'Marcin Bury' marcin.bury@... [IBObjects] wrote:
>> Hello everybody
>
>> Seeing Jason around...
>
>> IBO search functionality is great, but is it possible to have
>> 'OR' criteria?
>> What I would like to achieve is bind two TIB_Edit to one
>> dataset column and then posting the search state get the
>> 'where' like this:
>
>> aColumn = 'aedit1_text' OR aColumn = 'edit2_text'
>
>> instead of
>
>> aColumn = 'aedit1_text' AND aColumn = 'edit2_text'
>> Is it possible?
>
>> Thanks
>> Marcin
>
>
>
>------------------------------------
>Posted by: Geoff Worboys <geoff@...>
>------------------------------------
>
>___________________________________________________________________________
>IB Objects - direct, complete, custom connectivity to Firebird or
>InterBase
> without the need for BDE, ODBC or any other layer.
>___________________________________________________________________________
>http://www.ibobjects.com - your IBO community resource for Tech Info
>papers,
>keyword-searchable FAQ, community code contributions and more !
>http://tracker.ibobjects.com - your portal to submit and monitor bug
>reports
>http://community.ibobjects.com - your portal to purchase and upgrade
>------------------------------------
>
>Yahoo Groups Links
>
>
>