Hi!
Yes, it is possible: search query store in request.vars.keywords
if request.vars.keywords is not None - just redefine fields' list.
There are some gotchas - if query (i.e. request.vars.keywords) will be not
precise, i.e. it will be not containing table_name.field_name, it will
search in all redefined fields' list.
but you can write something like this:
if 'table_name.field_name' not in request.vars.keywords:
request.vars.keywords='table_name.field_name contains %s' %
request.vars.keywords
to force searching only one field
On Saturday, March 14, 2015 at 4:25:39 AM UTC+3, 黄祥 wrote:
>
> hi,
>
> is it possible to use grid that only show search field? the grid data
> table will show after user the search query is entered
>
> 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.