Re: [web2py] Re: remove dups when using IS_IN_DB validator

2010-11-22 Thread Audra Rudys
That worked -- thanks! On Mon, Nov 22, 2010 at 4:58 PM, mdipierro wrote: > IS_IN_DB(db,'field.id','%(name)s',groupby=db.field.name) > > On Nov 22, 4:23 pm, Audra Rudys wrote: > > I have a form that only allows a subset of choices for some of the > fields, > > so I'm using a SQLFORM Factory and

[web2py] Re: remove dups when using IS_IN_DB validator

2010-11-22 Thread mdipierro
IS_IN_DB(db,'field.id','%(name)s',groupby=db.field.name) On Nov 22, 4:23 pm, Audra Rudys wrote: > I have a form that only allows a subset of choices for some of the fields, > so I'm using a SQLFORM Factory and the IS_IN_DB validator to generate a list > of allowable values for the drop down list.