[web2py] Re: Autocompletion Widget

2010-08-09 Thread mdipierro
The problem is that when you autocomplete you may have lots of records so search has to be done based on DB content. If you were to use virtual fields (computed on the fly by web2py) the search would be done client-side in memory. It would be faster but would not work for large record sets. Massim

[web2py] Re: Autocompletion Widget

2010-08-09 Thread villas
Thanks Massimo, I can do that. Only slight issue is the computed field physically takes space in the database. I was a bit puzzled why a virtualfield would not work because I thought it was introduced for precisely this kind of use. -- D On Aug 9, 1:54 am, mdipierro wrote: > You must have comp

[web2py] Re: Autocompletion Widget

2010-08-08 Thread mdipierro
You must have computed field that contains the contend you want to use 'name + town' On Aug 8, 7:06 pm, villas wrote: > I have the following requirements: > > 1) The widget to show the 'name' but save the 'id' > 2) The widget to reveal the fields 'name' plus 'town' in the drop down > selection. >

[web2py] Re: autocompletion

2010-02-21 Thread villas
You did see the thread linked below? This autocomplete does actually work. The arrow keys don't seem to work very well in IE8 but it's easy to set up and worth trying. http://groups.google.com/group/web2py/browse_thread/thread/dcbb1b8ee8fde952/d941cfea44e361c2?lnk=gst&q=autocompletion#d941cfea44

[web2py] Re: autocompletion

2010-02-20 Thread mr.freeze
Here's another option: http://www.web2pyslices.com/main/slices/take_slice/24 On Feb 20, 9:20 pm, weheh wrote: > I'm in the middle of doing my first autocompletion. I've read and > reread doc v2 example. But I've also gone to the jQuery site and > looked at their example. > > Q1) Does anyone have