Actions

Alternatieven voor de functie Importeren

From LimeSurvey Manual

Revision as of 17:02, 29 October 2013 by Han (talk | contribs)

Importeren via het administratie scherm

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)

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.

Importeren via de commandoregel

Vanaf versie 1.50 t/m versie 1.92 was het mogelijk om via de commandoregel (shell) enquêtes te importeren. Je moet toegang hebben tot de shell en ook moet PHP zo zijn ingesteld dat het uitvoeren van scripts via de shell toegestaan is.

Deze functie is nuttig als je bij het importeren via het administratiescherm (hierboven beschreven) time-out problemen krijgt omdat de te importeren enquête erg groot is.

Uitvoeren: Ga in de shell naar de map limesurvey/admin en tik in:

php cmdline_importsurvey <File to import> [<user> <password>]

  • <te importeren bestand> met een bestandstype zoals hierboven beschreven
  • <gebruiker> dit moet een gebruikers zijn die enquêtes mag aanmaken
  • <wachtwoord> het wachtwoord van die gebruiker

Als je de parameters wilt zien, tik dan in:

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.

Importeren van andere applicaties

Wij krijgen soms het verzoek om ook enquêtes uit andere applicaties of van andere enquête aanbieders te laten importeren in LimeSurvey. Het probleem is dat providers als SurveyMonkey niet de mogelijkheid bieden om de structuur te exporteren, je kunt alleen de respons exporteren. Het heeft dus nadelen als je software gebruikt die niet opensource software is.