LoadUserInputBlock recalls the content of a previously defined UserInputBlock inside a UserInput dialog definition.
Tag Attributes
|
Attributes |
Value Description |
|---|---|
|
Name |
Block name |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ytriaAutomation>
<UserInputBlock Name="Block1">
<Variable Type='label' Name='label11' Label='BLOCK 11'/>
<Variable Type='label' Name='label12' Label='BLOCK 12'/>
</UserInputBlock>
<UserInputBlock Name="Block2">
<Variable Type='label' Name='label21' Label='BLOCK 21'/>
<Variable Type='label' Name='label22' Label='BLOCK 22'/>
<If Target="var" Test="{%v_Switch%}" Mode="Equals" Value="2">
<Variable Type='label' Name='ifinblock' Label='FROM IF IN BLOCK'/>
</If>
</UserInputBlock>
<UserInputBlock Name="Block3">
<Variable Type='label' Name='label3' Label='BLOCK 3'/>
<LoadUserinputBlock name="Block2"/>
</UserInputBlock>
<SetVar v_Msg='name'/>
<SetVar v_Switch='2'/>
<SetVar v_Sub='3'/>
<List Name='ListX' W='X 1' Action='SetVar'/>
<List Name='ListX' W='X 2' Action='SetVar'/>
<List Name='ListX' W='X 3' Action='SetVar'/>
<List Name='ListX' W='X 4' Action='SetVar'/>
<List Name='ListY' W='Y 1' Action='SetVar'/>
<List Name='ListY' W='Y 2' Action='SetVar'/>
<List Name='ListY' W='Y 3' Action='SetVar'/>
<List Name='ListY' W='Y 4' Action='SetVar'/>
<UserInput Title='IF' ButtonTextOK='OK'>
<If Target="var" Test="{%v_Switch%}" Mode="Equals" Value="1">
<Variable Type='label' Name='description' Label='A (NOK)'/>
</If>
<Else>
<LoadUserinputBlock name="Block1"/>
<If Target="var" Test="{%v_Sub%}" Mode="Equals" Value="3">
<Variable Type='label' Name='ddd' Label='SUB B (OK)'/>
</If>
<Else>
<Variable Type='label' Name='description' Label=' SUB B (NOK)'/>
</Else>
</Else>
<Variable Type='label' Name='label' Label='MAIS'/>
<If Target="var" Test="{%v_Switch%}" Mode="Equals" Value="1">
<Variable Name="RadioList" Type="List" Label="List (NOK)" Value="List item X" Tooltip="List tooltip">
<ListItem Label='ChoiceLabel' Value='W' ListName='ListX'/>
</Variable>
</If>
<Else>
<Variable Name="RadioList" Type="List" Label="List (OK)" Value="List item Y" Tooltip="List tooltip">
<ListItem Label='ChoiceLabel' Value='W' ListName='ListY'/>
</Variable>
<LoadUserinputBlock name="Block3"/>
</Else>
</UserInput>
</ytriaAutomation>