hi, 

is it possible to use IS_IN_DB with orderby in multiple fields?
e.g.
table.model.requires = IS_IN_DB(db, db.model.id, lambda r: '%s %s - %s' % 
(r.brand.name, r.name, r.ref_no), 
orderby = db.model.brand | db.model.name | db.model.ref_no )

the example above is work fine but the result is not expected, what i want 
to achieve is something like :
e.g.
table.model.requires = IS_IN_DB(db, db.model.id, lambda r: '%s %s - %s' % 
(r.brand.name, r.name, r.ref_no), 
orderby = *db.model.brand.name* | db.model.name | db.model.ref_no )
but it return an error, any idea how to achieve it in web2py way?

thanks and best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to