Oh ok I got it... I just forgot about this b/c I use a manual autocomplete function...
I was using IS_IN_DB just as a validator to make sure user don't try to input wrong value I think I`ll make one validator just for validate user... Do you think this is a good idea to add to the framework? Thank you! On Sunday, February 22, 2015 at 1:03:56 AM UTC-3, Niphlod wrote: > > IS_IN_DB() is a validator. Usually you need it to turn a foreign key to a > human-understandable value, or to let the human select values from a set. > Depending on your model and on the number of values available, generating > the default widget in an edit form, which is an html SELECT, can take time, > but if you really want that widget, there's not much web2py can do, because > it needs to fetch those 10k records to let the human select the proper > value. > That being said, with 10k records, a SELECT is not appropriate, as you're > forcing your users to skip through 10k records to choose what they want. I > suggest you look into the autocomplete widget, or make your own ... > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

