Imported from previous forum
HI
I’m attempting to add a group of RadioButtons with specific outvalues based on the radio button selected. Instead of getting the value in the EnumPair I’m getting either false( for the first 2 radio buttons) and true( for the third radio button). Not sure what I am doing wrong, can’t find an example of the RadioButton
<Parameter xsi:type="String_t" name="RadioButtonTestParam" fixTag="6036" >
<EnumPair enumID="e_Radio1" wireValue="-1" />
<EnumPair enumID="e_Radio2" wireValue="0" />
<EnumPair enumID="e_Radio3" wireValue="1" />
</Parameter>
<StrategyPanel orientation="VERTICAL">
<Control xsi:type="RadioButton_t" ID="RadioButton1" radioGroup="RadioTest" parameterRef="RadioButtonTestParam" checkedEnumRef="e_Radio1" label="Radio Button1" />
<Control xsi:type="RadioButton_t" ID="RadioButton2" radioGroup="RadioTest" parameterRef="RadioButtonTestParam" checkedEnumRef="e_Radio2" label="Radio Button2" initValue="true" />
<Control xsi:type="RadioButton_t" ID="RadioButton3" radioGroup="RadioTest" parameterRef="RadioButtonTestParam" checkedEnumRef="e_Radio3" label="Radio Button3" />
</StrategyPanel>
Any thoughts on what the issue is would be appreaciated.
Thanks
Merv
I believe what you really want is to be using a RadioButtonList vs. individual RadioButton Controls. The RadioButtonList also ensures that only one RB is selected at at time (and thus the RadioButtonList produces one, and only one value).
I suggest you refer to slide 23 in the PPT at this link (on the FPL website):
http://fixprotocol.org/documents/5414/Implementing%20FIXatdl%20-%20Atwell%20-%20FPL%20Americas%20-%20Teaching%20Stream%2020101021.pptx
Thus, I would suggest you try, instead:
HI
I’m attempting to add a group of RadioButtons with specific outvalues based on the radio button selected. Instead of getting the value in the EnumPair I’m getting either false( for the first 2 radio buttons) and true( for the third radio button). Not sure what I am doing wrong, can’t find an example of the RadioButton
<StrategyPanel orientation="VERTICAL"> <Control xsi:type="RadioButton_t" ID="RadioButton1" radioGroup="RadioTest" parameterRef="RadioButtonTestParam" checkedEnumRef="e_Radio1" label="Radio Button1" /> <Control xsi:type="RadioButton_t" ID="RadioButton2" radioGroup="RadioTest" parameterRef="RadioButtonTestParam" checkedEnumRef="e_Radio2" label="Radio Button2" initValue="true" /> <Control xsi:type="RadioButton_t" ID="RadioButton3" radioGroup="RadioTest" parameterRef="RadioButtonTestParam" checkedEnumRef="e_Radio3" label="Radio Button3" /> </StrategyPanel>Any thoughts on what the issue is would be appreaciated.
Thanks
Merv