Movilizer - A menu item in a complex navigation interface not working properly?

I am trying to create a comprehensive interface consisting of the "Menu Item" screen (type = "6") at the top and the text input screen (type = "5") below. I want the menu item screen to go to a different screen than the text item screen, although I have to put the text item screen in the nextQuestionKey attribute.

I tried this with a restriction on the "Menu Item" screen, as shown in the code below, but the validator tells me that "Branching is not allowed."

I tried to move the restriction to the text input screen. There, the validator tells me that "The menu screen on a complex screen that is not at the end should provide a valid predefined navigation response of the attribute typeType = 72"

<question key="15" type="6" backNavigationAllowed="true" sortAnswersByClientKey="false"> <answer key="15_1" nextQuestionKey="16" clientKey="CK#15"> <text>Scan barcode</text> </answer> <restriction nextQuestionKey="17" position="0"> <condition>getAnswerValueByClientKey($answer:"15_1", "CK#15") != ""</condition> </restriction> <complex linearGroupId="InputAssetNumber" gridGroupId="InputAssetNumber" linearInnerScrollbar="false" gridInnerScrollbar="false" gridHorizontalLayout="false" linearPos="0" gridPosX="0" gridPosY="0" gridWidth="1" gridHeight="1" linearHeight="1" groupTitle="Input Asset number"/> </question> <question key="16" type="5" backNavigationAllowed="true" sortAnswersByClientKey="false"> <answer key="16_1" nextQuestionKey="18" clientKey="CK#16" columnSizeType="ROWS"> <text>Enter barcode manually</text> </answer> <answer key="16_2" nextQuestionKey="18" clientKey="CK#16" columnSizeType="ROWS"> <text>Reason</text> </answer> <complex linearGroupId="InputAssetNumber" gridGroupId="InputAssetNumber" linearInnerScrollbar="false" gridInnerScrollbar="false" gridHorizontalLayout="false" linearPos="1" gridPosX="0" gridPosY="1" gridWidth="1" gridHeight="1" linearHeight="1"/> </question> 

I would appreciate if someone would help me find a solution to this problem.

+5
source share
1 answer

I think the easiest way to achieve this is to change the sequence of screens so that the Text Element screen points to the Menu screen. In the Sophisticated User Interface, you can still display the menu at the top if you want, so the navigation sequence does not affect this. On the "Menu" screen, you define the default answer to indicate the question key 18 ... pressing a button on the menu screen indicates question 17.

For the default response function, see https://devtools.movilizer.com/confluence/display/DOC22/Default+Answer+feature+for+Image+Menu+screens

 <question key="15" type="5" backNavigationAllowed="true" sortAnswersByClientKey="false"> <answer key="15_1" nextQuestionKey="16" clientKey="CK#16" columnSizeType="ROWS"> <text>Enter barcode manually</text> </answer> <answer key="15_2" nextQuestionKey="16" clientKey="CK#16" columnSizeType="ROWS"> <text>Reason</text> </answer> <complex linearGroupId="InputAssetNumber" gridGroupId="InputAssetNumber" linearInnerScrollbar="false" gridInnerScrollbar="false" gridHorizontalLayout="false" linearPos="1" gridPosX="0" gridPosY="1" gridWidth="1" gridHeight="1" linearHeight="1"/> </question> <question key="16" type="6" backNavigationAllowed="true" sortAnswersByClientKey="false"> <answer key="16_1" nextQuestionKey="17" clientKey="CK#17"> <text>Scan barcode</text> </answer> <answer key="16_2" nextQuestionKey="18" clientKey="CK#18" attributeType="72"> <text>default answer</text> <predefinedValue>X</predefinedValue> </answer> <complex linearGroupId="InputAssetNumber" gridGroupId="InputAssetNumber" linearInnerScrollbar="false" gridInnerScrollbar="false" gridHorizontalLayout="false" linearPos="0" gridPosX="0" gridPosY="0" gridWidth="1" gridHeight="1" linearHeight="1" groupTitle="Input Asset number"/> </question> 

This means that the initially complex interface displays an OK button. If the user clicks the OK button, the client goes to question 18. If the user asks for the Scan barcode button, the client goes to question 17.

+3
source

Source: https://habr.com/ru/post/1216096/


All Articles