Hi all,
 I have a simple one-to many relation between two tables.
When I use the admin interface the foreign key
is rendered as a textbox.
I'd like to render it with a combo box (select tag).
There is a simple way to do it?
I have tried to use the widget property of the Field object, without much
success.
Can someone point me to an example?
This is the code and the last line is wrong (I get an error):


db.define_table('category',Field('name','string'))
db.define_table('note',
    Field('description','string'),
    Field('created_on','date'),
    Field('category',db.category))
db.note.category.widget=SQLFORM.widgets.multiple.widget

-- 
Team Leader
Gioorgi.com Chief Editor

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to