[web2py] Re: Referring to a table to populate a drop down in a FORM

2012-11-21 Thread Tim Richardson
> I haven't used SQLFORM.factory before. Looks like I lose the functionality > of keepvalues=True > No, I was wrong. if form.process(keepvalues=True).accepted: --

[web2py] Re: Referring to a table to populate a drop down in a FORM

2012-11-21 Thread Tim Richardson
On Wednesday, 21 November 2012 22:56:43 UTC+11, Niphlod wrote: > > SQLFORM.factory(Field('mydropdown', requires=IS_IN_SET(('a','b','c' > Thanks. for my future reference, this code below does exactly what I want. Field('Commission_set',requires=IS_IN_DB(db1,db1.com_general_settings.id,

[web2py] Re: Referring to a table to populate a drop down in a FORM

2012-11-21 Thread Niphlod
SQLFORM.factory(Field('mydropdown', requires=IS_IN_SET(('a','b','c' On Wednesday, November 21, 2012 12:47:59 PM UTC+1, Tim Richardson wrote: > > I have a simple FORM to collect some parameters from the user. > I want one of the fields to be populated by values in a table (like the > normal d