LoadUserInputBlock: insert a UserInputBlock into a UserInput dialog

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>
image-20260703-235740.png