Re: [web2py] Re: In SQLFORM.grid, setting a session var when the user click on search or reset

2017-05-04 Thread Massimiliano
What about to use a custom button instead of the “view” one? You can use the grid ’s links options to build you button. and then you can use the A(…, callback=URL(…), target=yourdiv) to fill yourdiv with your details Take a look here http://www.web2py.com/books/default/chapter/29/05/the-views#A

[web2py] Re: In SQLFORM.grid, setting a session var when the user click on search or reset

2017-05-03 Thread Dave S
On Wednesday, May 3, 2017 at 5:51:34 AM UTC-7, Gael Princivalle wrote: > > Thanks Anthony, > > The idea is having both view and grid displayed in the same page. > The view is not made by the grid. It have to been displayed if the user > have clicked on the 'View' button, or not displayed if the

[web2py] Re: In SQLFORM.grid, setting a session var when the user click on search or reset

2017-05-03 Thread Gael Princivalle
Thanks Anthony, The idea is having both view and grid displayed in the same page. The view is not made by the grid. It have to been displayed if the user have clicked on the 'View' button, or not displayed if the user have clicked on the "Search" or "Reset" button. The first time the page is

[web2py] Re: In SQLFORM.grid, setting a session var when the user click on search or reset

2017-05-02 Thread Anthony
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