>
> Hi,
I want to use export feature in SQLFORM.grid, but it doesn't work when
query in self reference table.
db.py :
auth.settings.extra_fields['auth_user'] = [
....
Field('LineManager', 'reference auth_user'),
.....
controller.py :
lineMng = db.auth_user.with_alias('lineMng')
query = ((db.auth_user.id >= 1) & (db.auth_user.LineManager ==
lineMng.id))
fields = [db.auth_user.id,
db.auth_user.FullName,
......
lineMng.FullName ]
grid = SQLFORM.grid( query = query,
field_id = db.auth_user.id,
fields=fields,
....
csv=True)
In view, export part is not displayed.
How can I solve this?
Thanks in advance,
Regards,
--
---
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.