You should be able to do this in the controller that handles the grid. 
Please show the code you tried and explain exactly what happened.

On Monday, May 1, 2017 at 9:49:23 AM UTC-4, Gael Princivalle wrote:
>
> Hello.
>
> I would like to set a session var when the user click in a SQLFORM.grid on 
> the search or reset buttons.
> I've tried with Ajax but the next page is processed before the session var 
> has been set.
>
> Perhaps I can make a modification directly in the web2py files that are 
> called when the user click on "Search" or "Reset"?
>
> Someone knows where they are?
>
> Thanks.
>

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