uhm........then you completely skipped the docs about the autocomplete
widget...
model
db.define_table('stuff',
Field('nombre', 'string', requires=IS_NOT_EMPTY()),
format='%(nombre)s'
)
db.define_table('reel',
Field('whatever', 'string', requires=IS_NOT_EMPTY()),
Field('sid', 'reference stuff')
)
controller
def reel():
db.reel.sid.widget = SQLFORM.widgets.autocomplete(request, db.stuff.
nombre, id_field=db.stuff.id)
grid = SQLFORM.grid(db.reel, user_signature=False)
return locals()
--
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.