If I change the search form action to POST the whole url is preserved, and
the keywords variable is passed as request payload. However the search
doesn't work, I guest I have to change sqlform.grid in order to allows vars
as post_vars, is there a specific reason for having the search action as
GET?

 Paolo


2014-05-05 17:30 GMT+02:00 Richard Vézina <[email protected]>:

> Maybe there is a need for vars property that could work similarily as args
> of SQLFORM.grid?
>
> Richard
>
>
> On Mon, May 5, 2014 at 8:28 AM, Paolo Valleri <[email protected]>wrote:
>
>> Dear all,
>> I've implemented a method which uses SQLFORM.grid to show a subset of a
>> given table. The query that defines the subset is built using a variable
>> passed to the method through request.vars.*.
>> Everything works as expected but search, namely when I type search for
>> something all former request.vars are erased.
>> Actually the action url of the form is correct it has all request.vars
>> variable plus the signature, when I type search all of them are replaced by
>> the variable 'keywords'
>> Is this the expected behavior for SQLFORM.grid search?
>>
>> Regards
>> Paolo
>>
>> --
>> 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.
>>
>
>  --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/xlQfmCUZci0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

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