<div dir="ltr"><div>Any InParameter or OutParameter can indicate that it is an array.</div><div><br></div><div>An InParameter can also state that if this is an array it may only accept a certain item or range in the array as its content. So if I get an array response from a QuestionGrid I could specify which items in the array I needed. For example if the grid asked for the number of employees and Wage/Salary, I could specify just the items in the array providing the number of employees for use in a generation instruction. In the same way a Variable that is repeated for each person in the family could assign the InParameter of the Variable to be only the 0 position of the array for person 1, 1 position for person 2, etc. (assuming a zero based array).</div><div><br></div><div>Wendy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 13, 2015 at 11:27 AM, Wackerow, Joachim <span dir="ltr">&lt;<a href="mailto:Joachim.Wackerow@gesis.org" target="_blank">Joachim.Wackerow@gesis.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal">This is a DDI 3.2 question.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m wondering how the attribute limitArrayIndex can be used with multiple tokens. What is the purpose of this? How is the order of the tokens related to a complex QuestionGrid?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Background <u></u><u></u></p>
<p class="MsoNormal">---<u></u><u></u></p>
<p class="MsoNormal">In general:<u></u><u></u></p>
<p class="MsoNormal">QuestionGrid can have an OutParameter. This can be bound to an InParameter of a Command of a GenerationInstruction.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The simple case:<u></u><u></u></p>
<p class="MsoNormal">One line in a QuestionGrid represents one question which results in one variable. A single value could be bound by InParameter/@limitArrayIndex [0] which would be the result of the first line; InParameter/@limitArrayIndex[1] the result
 of the second line etc.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Some complex cases:<u></u><u></u></p>
<p class="MsoNormal">One line in a QuestionGrid represents multiple questions and results in multiple variables.<u></u><u></u></p>
<p class="MsoNormal">One line in a QuestionGrid represents one question where multiple answers are allowed. The result can be a computed variable on the basis of the multiple answers or can be multiple variables.<u></u><u></u></p>
<p class="MsoNormal">---<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I thought it is possible to use single values of the array by defining multiple bindings for the above mentioned QuestionGrids. What is then the purpose of multiple tokens of limitArrayIndex? Is it related to the use with this kind of QuestionGrids?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The documentation of limitArrayIndex says only:<u></u><u></u></p>
<p class="MsoNormal">“When the InParameter represents an array of items, this attribute specifies the index identification of the items within the zero-based array which should be treated as input parameters. If not specified, the full array is treated as the
 input parameter.”<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any comment appreciated.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Achim<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
DDI-users mailing list<br>
<a href="mailto:DDI-users@icpsr.umich.edu">DDI-users@icpsr.umich.edu</a><br>
<a href="http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users" target="_blank" rel="noreferrer">http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div>Wendy L. Thomas                              Phone: +1 612.624.4389</div><div>Data Access Core Director                 Fax:   +1 612.626.8375</div><div>Minnesota Population Center             Email: <a href="mailto:wlt@umn.edu" target="_blank">wlt@umn.edu</a></div><div>University of Minnesota</div><div>50 Willey Hall</div><div>225 19th Avenue South</div><div>Minneapolis, MN 55455</div></div>
</div>