i mean for the query in web2py way :
rows = db((db.model.id == db.product.model) & 
  (db.product.quantity > 0) )((*db.product.serial_no.contains(search_product) 
) | *
*   (db.product.product_no.contains(search_product) ) | *
*   (db.model.name.contains(search_product)* ) ).select(db.product.ALL)

is there any simpler method for this (bold type)?
my reason is perhaps sometime in the future i'll put more scope of table 
field in the forms search field. i mean 1 forms search field that can 
search in more than 1 table field.
or 1 form search field that can search for all field in the product table. 
(just like in sqlform grid)

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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to