O$: Typeahead / automagic droplists

Jim Creak jim at jacsoft.co.nz
Thu Jul 24 23:21:05 EDT 2014


Bastiaan, can you use https://archive.org/ to find the old blog?

Thanks
Jim

JACSoft Programming Ltd.



On 25/07/2014, at 12:29 PM, Bastiaan Olij wrote:

> Hey Caroline,
> 
> Darn, it is one of the things I used to have on my old blog, never
> copied those samples over to my new blog so they may have been lost..
> 
> I put such logic into a subwindow that I can place on any other window.
> The subwindow calls back into the parent window to ask for values as the
> user types things in so I can customize what I'm showing inside of the
> subwindow. Basically on the subwindow there is an entry field that as
> you type asks the parent window for a list of values that match what has
> been typed (you can configure a delay and a minimum number of characters
> before it does so if you expect very long result sets for only 1 or 2
> characters). The subwindow then picks the first entry of that list and
> shows that as the selected record. There is then a dropdown button that
> opens up a list of those.
> That list is currently dynamically on the parent window because that is
> the only way to present it ontop of other field. I plan to do a version
> that shows the list in a popup window instead but I haven't found a fool
> proof way yet to get the screen coordinates where that window should open.
> 
> This is one of the things I'm planning to show and explain in more
> detail during my EurOmnis session.
> 
> Cheers,
> 
> Bas
> 
> On 25/07/14 10:12 AM, Dr Caroline Wilkins wrote:
>> Dear Listers,
>> 
>> Has anyone got some code they would be willing to share that addresses
>> the issue of providing type ahead or automagic droplists please?
>> 
>> We have a version but think there may be better ways of doing it. We
>> have a Listbox that gets created and populated with a list of up to
>> approx 250 values and is filtered as the user types into an entry
>> field above. It's a bit time consuming to put into a window each time
>> it is needed on a field though. I just wondered if anyone had a
>> faster/simpler way of achieving the same thing (or better!)
>> 
>> Many thanks
>> 
>> Caroline 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list