*What is the problem with this code is not running its givning error
**'Query' object has no attribute '_tablename'*
def opencall():
from gluon.tools import Crud
from datetime import datetime
from time import strftime
#page = request.args(0)
query = db.call_log.id > 0
field =
[db.call_log.call_datetime_from,db.call_log.incident_street_no,db.call_log.incident_house_no]
table= SQLFORM.smartgrid(query,
user_signature=True,
fields=field,
deletable=False,
editable=False,
details=False,
csv=False,
paginate=20,
searchable=False,
oncreate=None,
onupdate=None,
ondelete=None,
)
return locals()
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.