Export - Am I going mad or…
Posted: 04 March 2009 03:44 AM   [ Ignore ]
Newbie
Rank
Total Posts:  8
Joined  2006-12-31

Has Freeform EVER been able to export data as a csv file?  I have this vague recollection of opening Freeform data in Excel in the past?

If I am going mad… is it at all possible to export the data in CSV so it will open in Excel as columns?

Also, I just upgraded to the latest version and the Export button just produces an empty .txt file.

Many thanks

Martin

Profile
 
 
Posted: 04 March 2009 08:17 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18

Hi Martin,

I’m not sure if Freeform has ever been able to export as CSV… not for me anyway raspberry

The whole thing is pretty fubar actually.

You’ll have a much easier time just going to the “Manage Database Tables” feature in EE smile

CP Home ›  Admin ›  Utilities ›  SQL Manager ›  Manage Database Tables

exp_freeform_entries

Then, just hilight/copy/paste into Excel wink

 Signature 
Profile
 
 
Posted: 04 March 2009 08:25 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  8
Joined  2006-12-31

Ok thanks for the response Pie Man.

Profile
 
 
Posted: 16 March 2009 03:27 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  4
Joined  2008-08-14

I’ve managed to get the export to produce a tab-separated txt file that Excel can read by making a few changes in the Freeform code.

I’ve attached a modified version of the mcp.freeform.php file (for version 2.7.1) if it’s any use. (zipped because php attachments are not allowed)

The changes are in the function ‘export_entries’.
Each change is surrounded by comments ‘START EXPORT FIXES’ and ‘END EXPORT FIXES’.

The changes are:
(1) Comment out all the MSIE-specific stuff regarding headers, as this seems to make things worse rather than better.
(2) Remove carriage-return and line-feed characters from the field data to prevent premature line ends.

Maybe Solspace can comment on the validity of these changes, but they seem to do the trick for me, using IE7.

File Attachments
mcp.freeform.zip  (File Size: 16KB - Downloads: 91)
Profile
 
 
Posted: 17 March 2009 10:50 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10254
Joined  2006-10-18

Thank you saratoga,

I’ll make a note of this to a developer smile

 Signature 
Profile
 
 
Posted: 17 March 2009 11:29 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  8
Joined  2006-12-31

Brilliant saratoga!  Many, many thanks!

Profile
 
 
Posted: 16 April 2009 05:33 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  8
Joined  2006-12-31

Sorry it’s been a while but just to let you know saratogas new file (above) is working great for us.  Just need to change the .txt extension to .xls once the file has downloaded.

Thanks again!

Profile
 
 
Posted: 22 April 2009 01:58 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  3
Joined  2008-11-01

Also working great for me .. export button now produces easy opened csv file using MS Excel and Firefox .. many thanks.

Profile
 
 
Posted: 27 January 2010 07:13 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  2
Joined  2008-06-03

This just seriously saved the day for me. Solspace needs to incorporate these fixes into their source. Stat.

Profile
 
 
Posted: 09 February 2010 04:58 AM   [ Ignore ]   [ # 9 ]
Member
Avatar
RankRankRank
Total Posts:  128
Joined  2008-02-26

Great stuff, cheers. Glad we found this, and also can’t believe that almost a year later this isn’t fixed in Freeform. Then again, it’s free so nur.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK

Profile