Page 1 of 1

Exporting Fieldnames to CSV?

PostPosted: Thu Oct 08, 2009 3:31 pm
by lhat
Hi, all!

My users love their spreadsheets exported from our application, but in those spreadsheets they'd really prefer to see the column heads match the fieldnames in the database.

But unless I've broken something, at present when we click on the export-to-csv button in Listview, we get data only, no headers.

Is there a way to allow one to choose column headers as the first line of data that's exported to CSV?

PostPosted: Fri Oct 09, 2009 7:36 am
by shannah
It should work that way already. What version of xataface are you using?

thanks: version 1.1.5r2 984

PostPosted: Fri Oct 09, 2009 4:13 pm
by lhat
Thanks Steve--

Our version is 1.1.5r2 984. I've just downloaded v. 1.2.1, too, and I'm getting the same behavior there, which confirms that it's something on our php set-up, I suppose.

I've checked Apache2 server access and error logs, but while the request seems to come in normally:

Code: Select all
"GET /index.php?-action=export_csv&-table=Schools&-cursor=0&-skip=0&-limit=100&-mode=list HTTP/1.1" 200 1984


there doesn't seem to be any error with the apache server (nothing in the error log).

Any ideas?