Something like this, could be some typos, but you´ll get the idea.

requires=IS_IN_DB(db(db.auth_user.id < 10),'auth_user.email')


Kenneth

Another detail,

and if i need to filter the requires=IS_IN_DB(db,'auth_user.id <http://auth_user.id>','auth_user.email') to show only some users base in some kind of criteria?



2011/7/27 Kenneth Lundström <[email protected] <mailto:[email protected]>>

    Sorry my bad, pasted it on the wrong side of the ).

    Kenneth


    Sorry,
    it works now

    instead of
    Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id
    <http://auth_user.id>','auth_user.email'), multiple=True)

    i write this and works

    Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id
    <http://auth_user.id>','auth_user.email', multiple=True))


    Em 27 de julho de 2011 14:38, António Ramos <[email protected]
    <mailto:[email protected]>> escreveu:

        File "D:/web2py10/web2py/applications/Vendas/models/db.py",
        line 101, in <module>
        TypeError: __init__() *got an unexpected keyword argument
        'multiple'*





Reply via email to