On Monday, January 23, 2017 at 4:09:43 PM UTC-8, Dave S wrote: > > > > On Monday, January 23, 2017 at 2:48:21 PM UTC-8, Jim S wrote: >> >> I'd build the url using URL and then redirect to the controller page to >> build the results page. >> >> http://web2py.com/books/default/chapter/29/04#markmin_URL >> >> http://web2py.com/books/default/chapter/29/04/the-core?search=redirect#HTTP-and-redirect >> >> -Jim >> > > (To expand on this) > The post at > <URL:https://groups.google.com/d/msg/web2py/hT-z8wbGr38/AVFCitNcBQAJ> > discusses a self-redirect after a form.process().accepted, but the idea is > the same for going elsewhere. > See the second paragraph. > > Even more expansion: the book explicity talks about redirecting -- <URL:http://web2py.com/books/default/chapter/29/07/forms-and-validators#Forms-and-redirection>
/dps >> >> >> On Monday, January 23, 2017 at 3:53:07 PM UTC-6, Reed Crowe wrote: >>> >>> Seems like a simple thing. >>> >>> I have a simple search form with three fields on it. >>> >>> The information entered helps tailor the DB query. >>> I have it working where it displays the data on the same form page, but >>> I want it to display on a separate page. >>> >>> What is the best way to do this? >>> I have tried to use a redirect, but I can not seem to get it to parse >>> the returned data and display it. >>> Is redirect the correct web2py way to do it or is there another method? >>> >>> Obviously I could use Django or take the data and using a python >>> function to parse the data and display it, but I am trying to learn web2py >>> and so far I am struggling a little bit. >>> >>> Any suggestions? >>> >> -- 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.