search_options = search_options or { 'string':
['=','!=','<','>','<=','>=','starts with','contains'],
'text':['=','!=','<','>','<=','>=','starts with','contains'],
'date':['=','!=','<','>','<=','>='], 'time':['=','!
=','<','>','<=','>='], 'datetime':['=','!
=','<','>','<=','>='], 'integer':['=','!
=','<','>','<=','>='], 'double':['=','!
=','<','>','<=','>='], 'boolean':['=','!=']} grid =
SQLFORM.grid(....,search_widget = lambda fields:
SQLFORM.seach_menu(fields,options))
take off those you do not want.
On Oct 18, 2:51 am, Johann Spies <[email protected]> wrote:
> My client does not want all the search options under the query-button - just
> the 'contains' option as default.
>
> How do I specify that in the controller?
>
> Regards
> Johann
>
> --
> Because experiencing your loyal love is better than life itself,
> my lips will praise you. (Psalm 63:3)