Actions

Alternatives to the LimeSurvey import function/de: Difference between revisions

From LimeSurvey Manual

No edit summary
(Updating to match new version of source page)
Line 4: Line 4:
=Import über die Administratorenoberfläche=
=Import über die Administratorenoberfläche=


If you have previously exported a survey structure, you can import it from the "Create, import, or copy survey" screen. Click on the import button. Click on the browse button to choose the file, and then click on the button. The import process reads the following formats:
If you have previously exported a survey structure, you can import it from the "Create, import, or copy survey" screen.  
*.LSA files, .TXT files
To get there just click the 'Create, import, or copy a survey' icon [[File:Add.png]] and in the following screen click on the 'Import' tab.
*v1.50 or later .CSV files created by LimeSurvey
Click on the browse button to choose the file, and then click on the ''Import survey' button.  
*v1.90 or later .LSS files created by LimeSurvey
 
The import process reads the following formats:
*.LSS files (XML-format created by LimeSurvey 1.90 or later)
*.LSA files (Survey archive which may include also token, responses and timings - available since LimeSurvey 2.0)
*.TXT files (Text-format created by Excel - available since LimeSurvey 2.0)
*.CSV files (Created by early LimeSurvey versions from 1.50 to 1.90)


Dort klicken sie zuerst auf "Durchsuchen...", wählen die entsprechende CSV oder SQL-Datei auf ihrem Computer aus und starten den Importvorgang mit "Umfrage importieren".
Dort klicken sie zuerst auf "Durchsuchen...", wählen die entsprechende CSV oder SQL-Datei auf ihrem Computer aus und starten den Importvorgang mit "Umfrage importieren".
Line 34: Line 39:


  php cmdline_importsurvey -h
  php cmdline_importsurvey -h
=Import using RemoteControl API=
Since LimeSurvey version 2.0 you can import a survey structure by using the [[RemoteControl_2_API|RemoteControl 2 API]].


=Importing surveys from other applications=
=Importing surveys from other applications=


We are often getting requests to import a survey from other applications or survey providers. The problem is that providers like SurveyMonkey lock you in - it is not possible to export the survey structure from SurveyMonkey, only the response data. So you can see that using non-open proprietary software or providers can be a bad idea in the first place.
We are often getting requests to import a survey from other applications or survey providers. The problem is that providers like SurveyMonkey lock you in - it is not possible to export the survey structure from SurveyMonkey, only the response data. We are sorry to say but using closed proprietary software or providers can be a bad idea in the first place.

Revision as of 11:14, 28 October 2013

Import über die Administratorenoberfläche

If you have previously exported a survey structure, you can import it from the "Create, import, or copy survey" screen. To get there just click the 'Create, import, or copy a survey' icon and in the following screen click on the 'Import' tab. Click on the browse button to choose the file, and then click on the Import survey' button.

The import process reads the following formats:

  • .LSS files (XML-format created by LimeSurvey 1.90 or later)
  • .LSA files (Survey archive which may include also token, responses and timings - available since LimeSurvey 2.0)
  • .TXT files (Text-format created by Excel - available since LimeSurvey 2.0)
  • .CSV files (Created by early LimeSurvey versions from 1.50 to 1.90)

Dort klicken sie zuerst auf "Durchsuchen...", wählen die entsprechende CSV oder SQL-Datei auf ihrem Computer aus und starten den Importvorgang mit "Umfrage importieren".

Umfragen folgender Versionen und Dateiformate können importiert werden:

  • .CSV Dateien aus v1.50 oder später - Achtung: Dies ist ein spezielles undokumentiertes CSV-Format
  • .LSS Dateien aus v1.90 oder später (dies ist ein XML Format)

Beim "intelligenten" Importvorgang werden die ID´s der Gruppen, Fragen, Antworten und Bedingungen sowie der Umfrage selber neu vergeben, sodass sie in sich konsistent sind - bestehende Umfrage werden nicht überschrieben! Für weitere Informationen sehen sie bitte auch Umfrage exportieren.

Import über die Kommandozeile

Seit LimeSurvey v1.50 ist es möglich, Umfragen über die Kommandozeile zu importieren. Dies ist z.B. nützlich, wenn man während des Importvorgangs mit der Web-Variante auf Timeout-Probleme stößt (tritt in Kombination mit sehr umfangreichen Umfragen auf). Um diese Funktionalität nützen zu können, benötigen sie Zugang zum Shell und ihr PHP Interpreter muss so konfiguriert sein, dass er das Ausführen von Skripten auf der Shell-Ebene erlaubt.

Hierzu gehen sie im Shell in das Verzeichnis limesurvey/admin und führen folgenden Befehl aus:

To use it, in the shell go to the limesurvey/admin folder and execute:

php cmdline_importsurvey <File to import> [<user> <password>]
  • <File to import> has to be one of the described above
  • <user> has to be a user with the right to create surveys
  • <password> the password for the user
    *<user> and <password> are only required if the control access is active

<Benutzer> und <Passwort> werden nur benötigt, falls die Zugriffsteuerung aktiviert ist.

php cmdline_importsurvey -h

Import using RemoteControl API

Since LimeSurvey version 2.0 you can import a survey structure by using the RemoteControl 2 API.

Importing surveys from other applications

We are often getting requests to import a survey from other applications or survey providers. The problem is that providers like SurveyMonkey lock you in - it is not possible to export the survey structure from SurveyMonkey, only the response data. We are sorry to say but using closed proprietary software or providers can be a bad idea in the first place.