-
Notifications
You must be signed in to change notification settings - Fork 9
/
CheckAndUncheckElements.mxml
65 lines (56 loc) · 2.26 KB
/
CheckAndUncheckElements.mxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!--
Movilizer 2.5 screen used to check / uncheck different values in the same row of a table
-->
<MovilizerRequest
systemId="${#Project#SystemID}"
systemPassword="${#Project#Password}"
numResponses="0"
synchronousResponse="true"
useAutoAcknowledge="false"
xmlns="http://movilitas.com/movilizer/v14">
<moveletDelete moveletKey="checkedAndUnchecked" ignoreExtensionKey="true" />
<moveletSet>
<movelet
moveletKey="checkedAndUnchecked"
initialQuestionKey="q1"
moveletType="MULTI"
icon="1"
visible="true">
<question key="q1" type="9" title="Check and uncheck" tableRowDetailsEnabled="true">
<answer key="a1" clientKey="ck.a1" nextQuestionKey="END" attributeType="11" dummyAnswer="true" triggerScreenValueChangedEvent="true" colIndex="0">
<text>OK</text>
</answer>
<answer key="a2" clientKey="ck.a1" nextQuestionKey="END" attributeType="11" dummyAnswer="true" triggerScreenValueChangedEvent="true" colIndex="1">
<text>NOT OK</text>
</answer>
<answer key="a3" clientKey="ck.a1" nextQuestionKey="END" attributeType="11" dummyAnswer="true" triggerScreenValueChangedEvent="true" colIndex="2">
<text>N/A</text>
</answer>
<onEnterAssignment>
i = 0;
while (i ?lt 5)
{
addAnswer($answer:'a1', i, '');
addAnswer($answer:'a2', i, '');
addAnswer($answer:'a3', i, '');
i = i + 1;
}
</onEnterAssignment>
<onScreenValueChangeEvent>
function($ref:answerKey, $ref:clientKey, $ref:value, $ref:data)
{
if (!isBlank(getAnswerValueByClientKey(answerKey, clientKey)))
{
setAnswerValueByClientKey($answer:'a1', clientKey, '');
setAnswerValueByClientKey($answer:'a2', clientKey, '');
setAnswerValueByClientKey($answer:'a3', clientKey, '');
setAnswerValueByClientKey(answerKey, clientKey, 'X');
}
}
</onScreenValueChangeEvent>
</question>
<name>Check and uncheck</name>
</movelet>
<participant participantKey="${#DEV#ParticipantId}" name="${#DEV#ParticipantName}" deviceAddress="${#DEV#DevideAddress}" />
</moveletSet>
</MovilizerRequest>