*Massimo,
When I removed the orderby clause it solved problem with the error message.
but I still need to sort the grid in desc order.
*
def dailycounts():
grid=SQLFORM.smartgrid(db.daily_counts,
user_signature=False,create=False,editable=False,deletable=False,*
orderby=~db.daily_counts.add_date*,
fields=[db.daily_counts.add_date,db.daily_counts.encrypt_count,db.daily_counts.decrypt_count,db.daily_counts.error_count,db.daily_counts.cycle_count,db.daily_counts.directory_create_count,db.daily_counts.client_add_count])
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.