Actions

Alternativen zur Import-Funktion von LimeSurvey

From LimeSurvey Manual

Revision as of 11:27, 28 October 2013 by C schmitz (talk | contribs) (Created page with "Um dies in der Kommandozeite zu nutzen, wechseln Sie zum limesurvey/admin Ordner und geben Sie ein:")

Import über die Administratorenoberfläche

Wenn Sie zuvor eine Umfragestruktur exportiert haben, können Sie diese im "Erstellen, importieren oder kopieren einer Umfrage"-Bildschirm importieren. Um dorthin zu gelangen klicken Sie einfach auf das Erstellen, Importieren oder Kopieren einer Umfrage-Symbol und im folgenden Bildschirm klicken Sie auf den Karteireiter Importieren'. Klicken Sie auf die Schaltfläche Durchsuchen, um die Datei zu wählen, und klicken Sie anschließend auf die Schaltfläche Umfrage importieren.

Der Import-Prozess liest die folgenden Formate:

  • .LSS-Dateien (XML-Format, das von LimeSurvey 1.90 oder neuer erstellt wird)
  • .LSA Dateien (Umfrage-Archiv, das auch Token, Antworten und Timings beinhalten kann - verfügbar seit LimeSurvey 2.0)
  • .TXT-Dateien (Von Excel erstelltes Text-Format - verfügbar seit LimeSurvey 2.0)
  • .CSV-Dateien (Erstellt von frühen LimeSurvey-Versionen 1.50-1.90)

That way you can import old surveys from previous versions. The import 'intelligently' re-numbers the survey, group, question, answer, and condition IDs so that they all match each other - no existing surveys will be overwritten. See the section on Exporting a survey structure for more information.

Import über die Kommandozeile

In LimeSurvey v1.50 bis v1.92 war es möglich, Umfragen über die Kommandozeile zu importieren. Um diese Funktionalität nutzen 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.

Diese Funktion war nützlich, wenn Sie z.B. Probleme mit Timeout in der GUI hatten, wenn man sehr große Umfragen importieren will.

Um dies in der Kommandozeite zu nutzen, wechseln Sie zum limesurvey/admin Ordner und geben Sie ein:

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.