thanks,
works in the same way, I have table with links and when I click on it I have message "not authorized" and nothing happen.
I try to select some rows from table and display them in Views, with links to edit or view single record from table
SQLFORM is a good idea but there is another problem:
i have following query in model:
query = db((db.t_database.f_field == 'No') & (db.t_database.f_anotherField == 'Yes')).select()
and in Controllers:
def function():
table = SQLFORM.smartgrid(db.t_database, constraints = dict(t_database = query))
return locals()
and View:
{{extend 'layout.html'}}
{{=table}}
and there is following error:
Query Not Supported: (1064, "You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right
syntax to use near '9, at line 2")
when I run the same query with SQLTABLE it works fine