Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread Kenneth Lundström
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 ','auth_user.email') to show only some users base in

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread António Ramos
Another detail, and if i need to filter the requires=IS_IN_DB(db,'auth_user.id','auth_user.email') to show only some users base in some kind of criteria? 2011/7/27 Kenneth Lundström > Sorry my bad, pasted it on the wrong side of the ). > > Kenneth > > > Sorry, > it works now > > instead

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread Kenneth Lundström
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 ','auth_user.email'), multiple=True) i write this and works Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread António Ramos
Sorry, it works now instead of Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id','auth_user.email'), multiple=True) i write this and works Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id','auth_user.email', multiple=True)) Em 27 de julho de 2011 14:38, António Ramos e

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread António Ramos
File "D:/web2py10/web2py/applications/Vendas/models/db.py", line 101, in TypeError: __init__() *got an unexpected keyword argument 'multiple'*

Re: [web2py] DAL - Multiple select for field

2011-07-27 Thread Kenneth Lundström
Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id ','auth_user.email'), multiple=True) Kenneth this way in admin when i populate a record i can only select one user from auth_user. *What if i want to select multiple users at once?* thank you

[web2py] DAL - Multiple select for field

2011-07-27 Thread António Ramos
Hello, i have a table for clients and a field Field(' client_contacts ',requires=IS_IN_DB(db,'auth_user.id ','auth_user.email')) this way in admin when i populate a record i can only select one user from auth_user. *What if i want to select multiple users at once?* thank you