Hi,

first question:

following what reported in the doc
http://www.web2py.com/book/default/chapter/09?search=export_to_csv

I have implemented my export view but I realized that apparently I have no file name control and it depends on the browser I use even if I called my view "export.csv". With Google Chrome I get "download" and with iceweesel an arbitrary random characters sequence such as "n5oP+nWj.csv.part".
How can I fix the file name?

second question:
what if I want firstly view the data extracted in a table (using SQLTABLE or powerTable plugin) and than download them without performing the query again?

I thought to save the query result in session but when I use it to write my csv it says:
AttributeError: 'list' object has no attribute 'export_to_csv_file'

Thank you
Cheers

        Manuele

Reply via email to