Imported from previous forum
[ original email was from Dev Ashish - dashish@lab49.com ]
A strategy contains some EnumPairs tied to a Parameter_t, P1, which is then referenced from a Control_t, C1, (with its own ListItems) via parameterRef (like Tazer in sampleStrategiesfor-v1.1.xml).
When defining a rule via StrategyEdit_t/Edit_t, is the valid “value” supposed to refer to a ListItem’s uiRep or P1’s wireValue? Or are both acceptable (since there’s no enforcement)?
Along similar lines, if another Control_t, C2, defines a StateRule referring to C1, is C2’s Edit_t value supposed to contain C1 ListItem enumID/uiRep or P1’s wireValue?
Example below
Thanks
<Parameter name=“SweepDistribution” xsi:type=“Char_t” fixTag=“7640” use=“required”>
<EnumPair enumID=“e_Uniform” wireValue=“U”>
<Description>The ‘Uniform’ setting for Sweep Distribution</Description>
</EnumPair>
<EnumPair enumID=“e_Gaussian” wireValue=“G”>
<Description>The ‘Gaussian’ setting for Sweep Distribution</Description>
</EnumPair>
</Parameter>
<lay:Control xsi:type="lay:TextField_t" ID="Variance" label="Variance" parameterRef="Variance">
<flow:StateRule enabled="true">
<val:Edit field="m_sd" operator="EQ" value="e_Gaussian"/>
</flow:StateRule>
</lay:Control>
<lay:Control ID="m_sd" xsi:type="lay:DropDownList_t" label="Sweep Distribution" parameterRef="SweepDistribution" initValue="Uniform">
<lay:ListItem enumID="e_Uniform" uiRep="Uniform"/>
<lay:ListItem enumID="e_Gaussian" uiRep="Gaussian"/>
</lay:Control>