x

Основни глави

  1. LimeSurvey Cloud срещу LimeSurvey CE
  2. LimeSurvey Cloud - Кратко ръководство за стартиране
  3. LimeSurvey CE - Монтаж
  4. Как да проектираме добро проучване (Ръководство)
  5. Приготвяме се да започнем
  6. Конфигурация на LimeSurvey
  7. Въведение - Анкети
  8. Вижте настройките на проучването
  9. Вижте менюто за проучване
  10. Вижте структурата на проучването
  11. Въведение - Въпроси
  12. Въведение - Групи въпроси
  13. Въведение – Проучвания – Управление
  14. Опции на лентата с инструменти за проучване
  15. Многоезично проучване
  16. Кратко ръководство за стартиране - ExpressionScript
  17. Разширени функции
  18. Общи ЧЗВ
  19. Отстраняване на неизправности
  20. Заобиколни решения
  21. Разрешително
  22. Дневник на промените на версията
  23. Плъгини - Разширени
 Actions

Импортиране на отговори

From LimeSurvey Manual

Revision as of 10:09, 21 November 2023 by Maren.fritz (talk | contribs) (Created page with "*''''Импортиране на времена (ако има)'''': времената не се показват в таблицата с отговори, а в табли...")


Въведение

Функцията импортиране на отговори се отнася до способността на LimeSurvey да импортира и показва стари отговори в собствената си Таблица с отговори. Някои сценарии, когато можете да го използвате:

  • искате да комбинирате всички ваши данни, събрани в две или повече LimeSurvey инстанции, в една LimeSurvey инстанции. Това обикновено се прави, за да получите по-добра представа за всички отговори, които искате да анализирате допълнително.
  • някои въпроси не са зададени в правилния тип. Тъй като LimeSurvey не позволява промяна на типа на въпроса, докато анкетата е активна, ще трябва да я деактивирате. Чрез деактивирането му се създава таблица с отговори и се съхранява в базата данни, свързана с вашата инсталация на LimeSurvey. След като приключите с промените си, активирайте отново вашата анкета и импортирайте отново вашите отговори от старата база данни с отговори.
  • искате да редактирате пакетно няколко реда в софтуер за електронни таблици и по-късно да ги импортирате отново във вашата инсталация. Това обикновено е случаят, в който сте променили типа на въпроса и искате да „настроите“ старите съхранени отговори към новия формат.


За достъп до функцията за импортиране изберете 'Отговори и статистика от главната лента с инструменти (показва се на всеки панел, свързан с проучване) и след това щракнете върху Отговори:



Ще бъде заредена страницата по подразбиране, резюме на отговора. Сега потърсете опцията Импортиране в горната горна лента с инструменти:



Налични са две опции за импортиране:


Импортиране

Импортиране на отговори от деактивирана анкетна таблица

След като щракнете върху 'Импортиране на отговори от деактивирана таблица с анкети, ще се зареди следната страница:



На тази страница можете да изберете две опции:

  • Изходна таблица: изберете таблицата, която искате да импортирате. Моля, имайте предвид, че таблиците могат да бъдат разположени или в раздела „съвместими“ или в раздела „съвместими с принудителен тип“. Моля, продължете да четете по-долу, за да разберете каква е последната опция, както и възможните рискове от принудително въвеждане на таблица с отговори.
  • 'Импортиране на времена (ако има)': времената не се показват в таблицата с отговори, а в таблицата с времена. Ако е активирано, времената също ще бъдат импортирани.


Template:Забележка


In the second part of the page, a warning message is displayed stating how compatibility is determine between two response tables (between the current one and the old/second one).


  Warning :

You can import all old responses that are compatible with your current survey. Compatibility is determined by comparing column types and names, the ID field being always ignored.

Using type coercion may break your data; use with care or not at all if possible.

LimeSurvey detects and handles the following changes:

  • Question is moved to another group (result is imported correctly).
  • Question is removed from target (result is ignored).
  • Question is added to target (result is set to database default value).


Import a VV survey file

If you click the Import a VV survey file button, the following page will be loaded:



  • Response data file: select the file to be uploaded from your machine. The accepted file formats are : *.csv, *.vv, *.txt.


As long as the first two lines are intact, you can import your vv survey file back into an active LimeSurvey survey.


  • Exclude record IDs?: if 'id' column exist in the file you can exclude this line or not. If this setting is checked then a new record is added for each line of the .vv file. If unchecked you can choose:



  • When an imported record matches an existing record ID (displayed if exclude record IDs is disabled, see the above screenshot):
    • skip: report and skip the new record. After upload you will see if the record already existed - if it did it's not imported.
    • renumber: renumber the new record. A new record is added to the response table with answer of the VV file.
    • replace: replace the existing record. The old record is deleted and completely replaced by the record from the VV file.
    • replace answer: replace response details from the vv file into the existing record. The old record is updated with the new response from the VV file.
  • Import as not finalized response?: if checked, the submitdate is set to NULL - the response is set to not completed.
  • Character set of the file: you can choose the character set of the file - the default and recommended value is UTF-8 but some spreadsheet program don't allow to choose a character set.
  • First line contains question codes: iy default, VV file's first line contains the human readable question, the real column names being located on the second line. Basically, the first line contains the real column names.
  • Force import: if the question codes are not found in the database name or in Qcode Variable Naming, then columns are assigned depending of order. This can be used to import the VV file from different LimeSurvey instance. Regardless of this, each survey must be exactly the same. We strongly recommend to use this option only if you know what you are doing. It can be very dangerous - the results can end up in the wrong column.


Reserved names

The reserved names are located between left and right brackets. When the .VV file is imported back into LimeSurvey, the strings are being replaced with:

  • {question_not_shown} : NULL value in database. LimeSurvey uses [empty string] for questions that were not answered and NULL value for questions that have not been shown (e.g., when using the ExpressionScript).
  • {quote} : " (a double quote)
  • {cr} : Carriage return
  • {newline} : A new line
  • {lbrace} : Left bracket (for example, if you want to have {cr} in response, use {lbrace}cr})

Potential issues & solutions with the VV file

If you used Microsoft Excel to edit the exported vv file, the data structure of this file may be corrupted, so LimeSurvey is not able to import the edited file. You can try the following workaround to get the import working without an error:

  1. Open your exported vv file in Excel and do your edits.
  2. Save it as tab-separated text file (it creates a new file with the extension .txt).
  3. Do another "clean" vv export from LimeSurvey.
  4. Open this new exported vv file with a text editor like notepad (or anything similar).
  5. Press CTRL + A to mark all of the content and delete it.
  6. Open the Excel edited vv file (the tab separated .txt file) with a text editor and press CTRL + A to mark all the content.
  7. Press CTRL + C to copy the content and paste it into the new (now empty) vv file.
  8. Press CTRL + S to save the file as it is (in .csv format).
  9. Try now to import this file.


  Attention : Possible import errors include date format - some system date fields do not allow a NULL value, some do. If the date looks okay but gives an error, use the Excel cell format "2009-12-01".



For other problems & solutions related to the export and import functionalities provided by LimeSurvey, please check the following wiki section. In the case in which you found a bug or something is not working properly/as described in the manual, please open a ticket (via your limesurvey.org administration panel), create a forum post, or submit directly a bug report on our bugs tracker.