Is there a limitation in the way SQLFORM.grid() can be used with groupby in 
the sense that functions like min(), max(), count() can't be used? 

the following gives an error: 
fields = [db.auth_user.id, db.my_table.created_on.min(), 
db.my_table.created_on.max()]
grid = SQLFORM.grid(query, fields=fields, groupby= db.auth_user.id)

the error is: 
<class 'AttributeError'> 'Expression' object has no attribute 'tablename'  

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b8e906f1-8e9b-4d00-8010-c0cb941171fan%40googlegroups.com.

Reply via email to