The "searchable" argument can be a function that takes the list of fields 
in the grid and the submitted keywords and returns a DAL Query object, so 
you can create a custom search function. For an example, see the default 
search 
function: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L2043.

Anthony

On Sunday, October 14, 2018 at 4:05:43 PM UTC-4, Andrea Fae' wrote:
>
> Hello, in a grid, if you type searchable=True default) you can search by 
> EVERY field in the grid. But I want to use the search box not to all fields 
> in te view, but only in some of them. Is it possible or I have to create a 
> specific search form? Can you send me some example?
> Thank you
>

-- 
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