Hi,
When I try to select the fields to be displayed as follow :
form = SQLFORM.smartgrid(
db.t_xlsfile,
fields=dict(
t_xlsfile=[
db.t_xlsfile.f_xlsfile,
],
),
I immediately get this strange error :
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 205, in restricted
exec ccode in environment
File "/home/www-data/web2py/applications/init/controllers/default.py",line
425, in <module>
File "/home/www-data/web2py/gluon/globals.py", line 173, in <lambda>
self._caller = lambda f: f()
File "/home/www-data/web2py/gluon/tools.py", line 2575, in f
return action(*a, **b)
File "/home/www-data/web2py/applications/init/controllers/default.py",line
257, in posting_history
t_xlsfile='Table of Excel files',
File "/home/www-data/web2py/gluon/sqlhtml.py", line 1989, in smartgrid
user_signature=user_signature,**kwargs)
File "/home/www-data/web2py/gluon/sqlhtml.py", line 1517, in grid
if field._tablename in tablenames]
AttributeError: 'str' object has no attribute '_tablename'
Any idea ??