nevermind, I found it.

El martes, 16 de julio de 2013 11:24:32 UTC-4, viniciusban escribió:
>
> Also, you can pass a query to IS_IN_DB(), filtering only records you want. 
>
> See here: 
> http://web2py.com/books/default/chapter/29/07#Database-validators 
>
> On Tue, Jul 16, 2013 at 10:34 AM, Jim S <j...@qlf.com <javascript:>> 
> wrote: 
> > Check out the book and the _and parameter.  Here is the sample from the 
> > book: 
> > 
> > subset=db(db.person.id>100) 
> > db.dog.owner.requires = IS_IN_DB(db, 'person.id', '%(name)s', 
> >                                  _and=IS_NOT_IN_DB(subset,'person.id')) 
> > 
> > 
> > -Jim 
> > 
> > On Tuesday, July 16, 2013 8:12:46 AM UTC-5, Eduardo Cruz wrote: 
> >> 
> >> is there a way that I can make the IS_IN_DB validator to show all the 
> >> records in an select in the form but not the ones that have the field 
> active 
> >> set to False? 
> > 
> > -- 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "web2py-users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to web2py+un...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to