as far as I know, this line "db.dog.owner.requires=IS_IN_DB(db, 'person.id')" is responsible for the dropdown widget.
It is a validator, but using it implies the use of widget. if you do not use the IS_IN_DB(..) you will have no widget, then will be only a text box field to input the id. On Tue, Aug 30, 2011 at 6:47 PM, brushek <[email protected]> wrote: > Hello, > > I have tested format argument in define_table: > > db.define_table('person', Field('name'), format='%(name)s') > > > db.define_table('dog',Field('name'),Field('image','upload'),Field('owner',db.person)) > db.dog.owner.requires=IS_IN_DB(db, 'person.id') > > If I comment out last line, the form=SQLFORM(db.dog, record=None, > deletable=False) will show name in select box (where owner will show), > but without comment there is only id (number). > > Is it ok ? > > regards > brushek -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]

