Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:filter-solving [14.08.2014 15:40] – [Filters at the forum] eric.weberen:create:filter-solving [08.09.2015 16:01] – [Detect failures] admin
Line 1: Line 1:
 ====== Problem solution for filters ====== ====== Problem solution for filters ======
  
-Filters or filter questions traditionally are a challenge for project leaders without programming experiences. Of course it is helpful to read the instructions on filters first: [[:en:create:filters|filters]].+Filters or filter questions traditionally are a challenge for project leaders without programming experiences. Of course it is helpful to read the instructions on filters first: [[:en:create:filters|Filters and Conditional Question]].
  
 It is especially frustrating if filters don't work and you don't know what to do. This chapter describes how to find out mistakes in a fast way. It is especially frustrating if filters don't work and you don't know what to do. This chapter describes how to find out mistakes in a fast way.
Line 20: Line 20:
  
 If question and filter have to be on the same page, the following chapter may help: [[:en:create:dynamic|Directly show questions for the selection of a certain option]] If question and filter have to be on the same page, the following chapter may help: [[:en:create:dynamic|Directly show questions for the selection of a certain option]]
 +
  
 ==== Top 2 ==== ==== Top 2 ====
Line 27: Line 28:
 For ''value()'' you __always__ need the value of a variable in the data set, not the value of a question or an item (also if both often are the same). For ''value()'' you __always__ need the value of a variable in the data set, not the value of a question or an item (also if both often are the same).
  
-Solution: The correct values of variables are listed in the **variable overview**. Before an after the value the command ''value()'' requires single (''<nowiki>'</nowiki>'') or double quotation marks (''"''), e.g. ''value('AB01_01')''.+Solution: The correct values of variables are listed in the **variable overview**. Before an after the value the command ''value()'' requires single (''<nowiki>'</nowiki>'') or double quotation marks (''%%"%%''), e.g. ''value('AB01_01')''. 
  
 ==== Top 3 ==== ==== Top 3 ====
Line 46: Line 48:
  
   - The identification of each question is shown in squared brackets.   - The identification of each question is shown in squared brackets.
-  - In the upper right is a yellow cornerIf you move the mouse upon, is Shows the //debug information//. This is necessary for finding mistakes in filters.+  - In the upper right there is a button "debug information"Click it to see the //debug information// of the current questionnaire page. This is additional information on the page's procession -- and extremely valuable when searching for problems with filters and/or PHP code.
   - SoScisurvey will show hints and alerts if it detects a problem. This information is not shown to normal respondents (in contrast to failures).   - SoScisurvey will show hints and alerts if it detects a problem. This information is not shown to normal respondents (in contrast to failures).
    
-The debug information explain, among other things, the results of the value() function and when the questionaire jumps to which page using ''goToPage()''. If these information are not as expected you usually found the failure.  +The debug information explain, among other things, the results of the ''value()'' function and when the questionaire jumps to which page using ''goToPage()''. Using ''[[:de:create:functions:debug|debug()]]'', the debug mode also shows the contents of PHP variables. If these information are not as expectedyou usually found the failure.  
    
 ===== Filters in the forum ===== ===== Filters in the forum =====
  
-Problem not solved? Then you can ask for advice in our forum:  +Problem not solved? Then you can ask for advice in the SoSci Survey [[http://forum.onlineforschung.org/viewforum.php?f=14|Support Board]]. You should include the following information: 
-Problem noch nicht gelöst? Dann stellen Sie eine Frage im [[http://forum.onlineforschung.org/viewforum.php?f=7|Support-Forum]]. You should include the following information: +
  
-  - What is the basis for the filter question (type and value)?+  - On what question is the filter based on (question type and ID)?
     - On which page is the filter question     - On which page is the filter question
-    - What are the variable(s) and answer codes of the filter question (**Variable overview**)? +    - What are the variable(s) and answer codes of the filter question (**Variable Listing**)? 
-  - On which page(s) is the information that should be filtered? +  - On which page(s) is the question, stimulus, etc. that should be filtered? 
-  - Which filter (PHP code) has been tried before unsucessfully? +  - Which filter (PHP code) has been tried beforeunsucessfully? 
-    - On which page is the PHP-code of the filter?+    - On which page is the PHP code of the filter?
     - What should happen under which conditions?     - What should happen under which conditions?
     - What is shown by the debug information on the page of the filter?     - What is shown by the debug information on the page of the filter?
  
en/create/filter-solving.txt · Last modified: 27.11.2020 21:08 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki