sqlform.grid csv export set delimiter

22 views
Skip to first unread message

Yebach

unread,
Nov 10, 2015, 10:41:23 PM11/10/15
to web2py-users
Hello

Is it possible to set the delimiter (tab delimited) for csv export from SQLform.grid?

also if I want to export some rows but do not want to show them in grid, what is the syntax to use (I want to hide a column db.workers.id, but i want to export it)?

thank you


Anthony

unread,
Nov 10, 2015, 11:19:10 PM11/10/15
to web2py-users
I think you want the tsv_with_hidden_cols option:

http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=tsv_with_hidden_cols

See the surrounding documentation for details on how to control/customize the download options (if you don't see an option that suits your needs, you can create your own export class, using the existing ones as examples).

Anthony
Reply all
Reply to author
Forward
0 new messages