The only other way is by making a widget

SQLField(...widget=...)

there are some examples in gluon/sqlhtml.py but your way of doing it
is the easiest way.

Massimo

On Apr 12, 11:13 am, annet <jmverm...@xs4all.nl> wrote:
> In a form_factory form I created a drop box using the following lines
> of code:
>
> keywordrows=db().select
> (db.event.sleutelwoord,distinct=True,orderby=db.event.sleutelwoord)
> keywordlist=[keywordrows[i]['sleutelwoord'] for i in range(len
> (keywordrows))] form=form_factory(SQLField
> ('sleutelwoord',label='Selecteer een sleutelwoord',requires=IS_IN_SET
> (keywordlist))
>
> I wonder whether there is another way to create a drop box in a
> form_factory form.
>
> Kind regards,
>
> Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@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