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
en:create:filter-itemcount [11.12.2014 21:33] alexander.ritteren:create:filter-itemcount [20.01.2015 18:44] (current) alexander.ritter
Line 1: Line 1:
 ======  At Least One Item Selected ====== ======  At Least One Item Selected ======
  
-Sometimes, it is not sufficient for a filter to check individual answers; but rather all the items in a question have to be looked at. Whether it be to look up corresponding items in another question ([[filter-items|Use Selected Items in Another Question]]) or just to check whether at least one item fulfils a particular condition. An exception to this is the calculation of scale indices within the survey ([[points|Count Points for Answers]]).+Sometimes, it is not sufficient for a filter to check individual answers; but rather all the items in a question have to be looked at. Whether it be to look up corresponding items in another question ([[filter-items|Use Selected Items in Another Question]]) or just to check whether at least one item fulfils a particular condition. An exception to this is the calculation of scale indices within the survey ([[points|Count Points for Responses]]).
  
 This chapter describes the function ''getItems()'' and loops -- two tools which allow sophisticated filters over multiple items. The starting point of this chapter is the following question TF04: a scale. The scale's values and the item IDs are shown in the image for additional information. This chapter describes the function ''getItems()'' and loops -- two tools which allow sophisticated filters over multiple items. The starting point of this chapter is the following question TF04: a scale. The scale's values and the item IDs are shown in the image for additional information.
Line 98: Line 98:
 In this example, it is particularly interesting what can be done with the counter (''$counter'') -- i.e. the last three lines. If an respondent uses none of the specified media at least once a month, in the above example he will be sent directly to the end of the questionnaire. Of course, a question block could also be skipped in this way or other filters implemented depending on ''$counter'' In this example, it is particularly interesting what can be done with the counter (''$counter'') -- i.e. the last three lines. If an respondent uses none of the specified media at least once a month, in the above example he will be sent directly to the end of the questionnaire. Of course, a question block could also be skipped in this way or other filters implemented depending on ''$counter''
  
-**Tip:** If you need the complex determined variable ''$counter'' later on in the questionnaire for another filter, use the function ''[[functions-proc#registervariable|registerVariable()]]''.+**Tip:** If you need the complex determined variable ''$counter'' later on in the questionnaire for another filter, use the function ''[[:en:create:functions:registervariable|registerVariable()]]''.
  
 It is often the case that only items for the media also used should be used in another question. This process is explained in the chapter [[filter-items|Use Selected Items in Another Question]].  It is often the case that only items for the media also used should be used in another question. This process is explained in the chapter [[filter-items|Use Selected Items in Another Question]]. 
  
en/create/filter-itemcount.txt · Last modified: 20.01.2015 18:44 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki