Forums

Data Exporting to text not CSV

ctopping1 07 May, 2014
I have an odd issue. When I click the Export CSV button ... the data displays in a web page and no longer displays the option to open or save CSV to excel.

thanks
GreyHead 07 May, 2014
Hi ctopping1,

That sounds like a change in the way your browser handles links. Does it work if you right click and use Save As?

Bob
ctopping1 07 May, 2014
Tried right click and save as in both IE and FF when hovered over the CSV export button, however there was no option to save the link as, I can only click on the link to see content.

A bit more detail, this isn't a clean install of chronoforms4, we migrated the db from another site via sql dump. The forms are working and inserting the content into the DB, just the csv export isn't working.

Thanks
ctopping1 07 May, 2014
I also tried to create a custom export by creating a separate form as mentioned here:
http://greyhead.net/how-to-docs/cfv4-csv-export-gh-action

However, when I click submit, this is the result.
Fatal error: Class 'JFolder' not found in /home/devster/public_html/administrator/components/com_chronoforms/form_actions/csv_export_gh/csv_export_gh.php on line 97

Maybe this will help more.

Thanks
ctopping1 08 May, 2014
Any ideas on this one yet? Thanks
GreyHead 10 May, 2014
Hi ctopping1,

It looks as though the action hasn't been updated for the more recent Joomla! changes. The fix is to add this around line 50
    jimport( 'joomla.filesystem.folder' );
or, perhaps, better, get and use my v2 of the action which has some other fixes and improvements too.

Bob
ctopping1 10 May, 2014
Bob -
Thanks for the reply. The v2 of the action did not cure my issue. Contents of the table still display as a comma separated file in the browser.

For the first part of your suggestion. What page do I add the jimport code to?

Thanks
ctopping1 10 May, 2014
what is also odd, when I click the pagination links from the bottom of the page, the next page just displays all the records in the table in a txt field.
GreyHead 12 May, 2014
Hi ctopping1,

I'm not completely understanding what is happening here. It sounds as though you are doing an immediate download and your browser is then opening the file in a new window/tab.

Then I'm even less clear where you are seeing a pagination link. Is this from the CF Admin 'View Data' page?

Bob
This topic is locked and no more replies can be posted.