我想知道是否可以基于一个动态屏幕进行幻灯片放映。我正在尝试使用动态表格屏幕。当用户点击确定时, $ local:categoryCounter 会引发并显示我的数组 $ local:categoryIndex 的其他信息。当用户点击后退时, $ local:categoryCounter 会减少,并在其值大于零时显示(已显示)信息。
这是我到目前为止所尝试的。我遗漏了尽可能多的不必要的细节,以明确确切的问题是什么。我想要达到的是这个Epsilon屏幕再次转发为 $ local:categoryCounter 尚未达到零。我知道这不会起作用,因为限制只允许在前进导航中,所以我希望有人有另一个想法来解决这个问题。
<!-- Pre-Epsilon needed to go back in slideshow -->
<question key="#6" type="41">
<answer key="#6_1" clientKey="CK#6" nextQuestionKey="#7"/>
<restriction position="0" nextQuestionKey="#1">
<condition>$local:navigateBack == true</condition>
</restriction>
<onEnterAssignment>
if($local:categoryCounter ?gt 0)
{
$local:categoryCounter = $local:categoryCounter - 1;
$local:navigateBack = false;
}
</onEnterAssignment>
</question>
<!-- End of Pre-Epsilon needed to go back in slideshow -->
<!-- Skill Categories Overview -->
<question key="#7" type="9" title="%PERSON_NAME%" sortAnswersByClientKey="true" labelFontSize="VERYLARGE" labelAlignment="CENTER" timeout="10">
<answer key="#7_1" clientKey="CK#7" attributeType="-128" nextQuestionKey="#8" position="1" dummyAnswer="true" colIndex="0" colWidth="5" colPriority="80">
<text>%SKILL%</text>
</answer>
<answer key="#7_2" clientKey="CK#7" attributeType="-128" nextQuestionKey="#8" position="2" dummyAnswer="true" colIndex="1" colWidth="5" colPriority="70">
<text>%VALUE%</text>
</answer>
<text>%CATEGORY_VALUE%</text>
<onLeaveOkPersistAssignment>
$local:categoryCounter = $local:categoryCounter + 1;
</onLeaveOkPersistAssignment>
<onLeaveBackAssignment>
$local:navigateBack = true;
</onLeaveBackAssignment>
</question>
<question key="#8" type="41">
<answer key="#8_1" clientKey="CK#8" nextQuestionKey="#7"/>
<restriction position="0" nextQuestionKey="#9">
<condition>$local:categoryCounter == count($local:categoryIndex)</condition>
</restriction>
</question>
<!-- End of Skill Categories Overview -->
答案 0 :(得分:0)
通过执行以下操作,您将实现预期的行为:
在后退导航中没有可以触发的限制因此所有逻辑都必须使用前向导航来实现。