For anyone else looking for a similar answer, I solved this by doing the 
following in my controller:

back_button = A(T('Back'), _href=URL('controller', 'function', 
user_signature=True), _class='btn')


Returned this as part of my dict back to my view and then did the following 
at the top of the view for "view" pages:

{{=back_button}}



On Tuesday, September 23, 2014 11:12:14 AM UTC-5, Kyle Flanagan wrote:
>
> I have a controller that creates a grid off of a table -- very basic grid. 
> I test to see if the user is "viewing" an item in the grid (if request.args 
> and request.args[0] == 'view') and if so, I customize the view to present 
> the information in the grid in a different layout.
>
> Now, I'd like to add a back button similar to what you get on the standard 
> view for a grid but without displaying the grid on the 'view' page.
>
> I know how to create the button in the view, but I'm not sure how to 
> create the URL since it's using the signature in the link.
>
> {{=A(T('Back'), _href=URL(????), _class='btn')}}
>
>

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