Type-Ahead Combo

Mike Matthews omnis at lineal.co.uk
Wed Mar 18 17:12:42 EDT 2015


StudioWorks offers this functionality but from within the framework. Always difficult to disentangle features really. 

Mike Matthews



Sent from my iPad


> On 18 Mar 2015, at 20:08, ADJob <mats at adjob.se> wrote:
> 
> Hi Mischa,
> 
>> On windows, it displays the system classes, regardless which key is entered
>> - is this on purpose?
> 
> Yes. System classes is loaded in $construct as iv_LIST_SOURCE as demo. Load whatever you want.
> 
>> Ok, now I understand - the demo searches for *any* occurrence of the entered
>> string within the list strings:
> 
> Yes. If the list is a combination of codes and text, you can search both code (normally in the beginning) text  (normally ”any” occurrence) to load the code.
> 
>> So to fill the list with strings *starting* with the entered values you
>> would need to do something like
>> 
>> Do
>> iv_LIST_SOURCE.$filter(left(upp(pv_CONTENTS),upp(iv_LIST_SOURCE.c1))>0,kTrue
>> )
> 
> It might be very useful sometimes.
> 
>> One little problem I encounter is that clicking the down button does not
>> display the full list.
> 
> Fixed if you download again:
> 
> http://www.adjob.se/download/typeaheadcombo.lbs.zip
> 
> Note that this combo also is useful within complex grids. You do not have to play with lists within lists.
> 
> /Mats_____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list