Export CSV as dataobject

More
5 years 7 months ago #118385 by robbiehunt
Hi, I would like to export a CSV and either save it locally to the limesurvey webserver instead of the users machine or export it using something like curl to yet another external server.

I'm having trouble figuring out where the CSV file is generated in order for me to intercept the saving of the file and send it using curl... I have looked at the CSV exporter plugin, but it doesn't seem to be exporting responses correctly, so I'm not sure if that's a good example to look at. But it doesn't show me how how the file is generated.
The topic has been locked.
LimeSurvey Partners
More
5 years 3 weeks ago #126473 by otfglenn
Replied by otfglenn on topic Export CSV as dataobject
I, too, would be interested in an answer to this question.
The topic has been locked.
More
5 years 3 weeks ago #126475 by DenisChenu
Replied by DenisChenu on topic Export CSV as dataobject
Hi,

The export plugin is done to export in another format.

Best seems to use API here :
- manual.limesurvey.org/RemoteControl_2_API
- api.limesurvey.org/classes/remotecontrol...hod_export_responses

Doing a script in PHP or Python and adding it to cron.

Alternative can be create a plugin using cron manual.limesurvey.org/Cron .

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
The following user(s) said Thank You: otfglenn
The topic has been locked.
More
4 years 8 months ago #131888 by Mazi
Replied by Mazi on topic Export CSV as dataobject
The API function to export responses is a good start for this. I just used it recently to code a dynamic script for a customer which allows users to download their own response as CSV or XLS file after having submitted a response.

For another customer I used it to create a password protected website which allows other project partner to download the latest results as CSV/XLS or PDF file by clicking a protected link.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now