Thanks Ivo, but result is the same, the response_flash returns me "not authorized". With this: {{=A('test link', _href=URL('products_listing/view/products/717'))}} Or this: {{=A('test link', _href=URL(r=request, c='products_listing/view', f='products', args=[717]))}}
I think it's due to the fact that there's a security signature in the URL when you ask for a single record SQLFORM.grid view: /products_listing/view/products/717?_signature=c393b8bc857a5842f659156755d1ffcaf3e082a3 So certainly the solution is to pass some args to the controller that you have to manage inside the grid construction. Another way could be making a single record view without the grid. Bye. Il giorno venerdì 6 dicembre 2013 15:23:15 UTC+1, Ivo ha scritto: > > Why don't you pass the product id as an arg[product_id]? > You can have a link like this _href=URL(r=request, > c='products_listing/view', f='products', args=[product_id]) > you know it's not really userfriendly to manipulate the grid view form. > > On Friday, December 6, 2013 2:59:46 PM UTC+1, Gael Princivalle wrote: >> >> Hello all. >> >> Is it possible to call a function/page with an SQLFORM.grid asking for >> the single view mode instead of the list mode ? >> >> Something like ... >> {{=A('test link', _href=URL('products_listing/view/products/717'))}} >> >> 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/groups/opt_out.