It's normally a good idea to construct your SQLTABLE in your controller and 
then pass it to your view,

e.g.:

default.py
def index():
   query = db().select(....)
   table = SQLTABLE(query,headers='fieldname:capitalize', linkto=
'table_manage')

default/index.html
{{extend 'layout.html'}}

{{=table}}

That being said, linkto is expecting a function to generate a URL. Is 
table_manage a function?

Also, I'm not exactly sure what you're trying to accomplish, but 
SQLFORM.grid or SQLFORM.smartgrid may already do what you're looking 
for. 
http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=smartgrid#SQLFORM-grid-and-SQLFORM-smartgrid



On Monday, May 5, 2014 6:15:00 PM UTC-5, Kajetan Wardziński wrote:
>
> Hello, my first app and I'm stuck.
> I generate table with SQLTABLE in Views like this:
> {{=SQLTABLE(query, headers='fieldname:capitalize', linkto='table_manage'
> )}}
> and links in generated table doesn't link directly to the specific record 
> in the database, I have also "not authorized" message
> It should be Digitally signed urls, but I don't kno how to use it
> 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/d/optout.

Reply via email to