[web2py] Re: Grid back button for custom single view

2015-12-15 Thread Gael Princivalle
This back button give me a lot of problems. Is there someone that could give an example? Il giorno giovedì 29 ottobre 2015 10:14:26 UTC+1, kecajk...@gmail.com ha scritto: > > Hi Guys, > > I need a hint on how to create back button in web2p y form. > > def grid1(): > links = [lambda row:

[web2py] Re: Grid back button for custom single view

2015-10-29 Thread kecajkecaj123
Hi Guys, I need a hint on how to create back button in web2p y form. def grid1(): links = [lambda row: A(SPAN(_class='icon magnifier'),'Form1',_class='button btn btn-default',_title='Form1',_href=URL("default","form1",args=[row.id]))] query=(db.test.id>0 ) grid =

[web2py] Re: Grid back button for custom single view

2014-01-03 Thread Gael Princivalle
Yes, that's the fastest solution. I will tried first to call a different html page for the custom single record view page, instead of calling the same where I have the grid. Thanks a lot. Il giorno domenica 29 dicembre 2013 18:28:06 UTC+1, Niphlod ha scritto: your problem is architectural:

[web2py] Re: Grid back button for custom single view

2013-12-29 Thread Niphlod
first and foremost: did you check what your browser sends as the referrer header ? On Sunday, December 29, 2013 10:26:43 AM UTC+1, Gael Princivalle wrote: Hi all. I've made a custom grid single view, that is in the same html page where I call the complete grid. When I call for

[web2py] Re: Grid back button for custom single view

2013-12-29 Thread Gael Princivalle
Goog question. In fact initialy referer is my previous page (http: //.../default/products_listing?keywords=od), and after when the browser load js and css files referer is my single view page (http: //.../default/products_listing/view/products/376?keywords=od). I think a way to resolve it is

[web2py] Re: Grid back button for custom single view

2013-12-29 Thread Niphlod
your problem is architectural: you just proved that you can't rely on the referrer header to make the app behave like you'd wish. Save the back url in a session variable and use that one instead ^_^ On Sunday, December 29, 2013 4:02:48 PM UTC+1, Gael Princivalle wrote: Goog question. In