Exporting Fieldnames to CSV?

A place for users and developers of the Xataface to discuss and receive support.

Exporting Fieldnames to CSV?

Postby lhat » Thu Oct 08, 2009 3:31 pm

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?
lhat
 
Posts: 40
Joined: Thu Aug 06, 2009 3:31 pm

Postby shannah » Fri Oct 09, 2009 7:36 am

It should work that way already. What version of xataface are you using?
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

thanks: version 1.1.5r2 984

Postby lhat » Fri Oct 09, 2009 4:13 pm

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?
lhat
 
Posts: 40
Joined: Thu Aug 06, 2009 3:31 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 21 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved