The autocomplete widget is for when a field appears in a create or update 
form -- it is used to help you fill in a value for the field.

Anthony

On Monday, May 27, 2013 10:43:11 PM UTC-4, Alec Taylor wrote:
>
> I haven't been able to get this to work: 
>
> # Models 
> db.define_table('category',Field('name')) 
> db.define_table('product',Field('name'),Field('category')) 
> db.product.category.widget = SQLFORM.widgets.autocomplete(request, 
> db.category.name, limitby=(0,10), min_length=2) 
>
> # View 
> {{= SQLFORM.grid(db.product) }} 
>
> ---- 
>
> How do I bind the search input box to the autocomplete widget? 
>
> Thanks for all suggestions, 
>
> Alec Taylor 
>

-- 

--- 
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/groups/opt_out.


Reply via email to