customizing csv export

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

customizing csv export

Postby generated » Mon Nov 19, 2007 2:42 pm

Similar to Order in the fields.ini file. Is there a way to change the order of fields for the csv export, as well as setting fields to show/hide in csv export.

I need to show and hide fields, and order fields based on values in the users table for whoever is logged in.

Any help appreciated, thanks!
generated
 
Posts: 1
Joined: Mon Nov 19, 2007 2:37 pm

Postby shannah » Tue Nov 20, 2007 1:36 pm

Currently there isn't very much flexibility here. The next version will add a lot more, including a visibility:csv parameter in the fields.ini file, and respect for the ordering defined in the fields.ini file.

I'll see about posting an updated version of actions/export_csv.php for you so that you can have some of these features earlier than the release, but I'll need to find some time first.... bug me in a week if I haven't posted it yet.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: customizing csv export

Postby kevinwen » Tue Dec 29, 2009 5:30 pm

Hi, Steve

I found there is no headings exported when no relationship exists in the query in the handle function (comparing line70-74 with line 89-93) in the actions/export_csv.php. Is this a bug or just for some reason?

-Kevin
kevinwen
 
Posts: 109
Joined: Mon Dec 28, 2009 3:44 pm

Re: customizing csv export

Postby shannah » Tue Dec 29, 2009 5:44 pm

This may have been for some reason way back... but for the sake of consistency and the most desireable behavior I would classify this as a bug now. I have fixed this problem in SVN (rev. 1694). You can download the latest at http://weblite.ca/svn/dataface/core/tru ... rt_csv.php

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 27 guests

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