Radio buttons

Radio buttons allow the user to select one choice from a set of options.

The set of radio buttons is populated using a 1010data query. The 1010data query associated with the widget should generate one or two columns (i.e., either values or values and labels).

Variable for value
The variable to hold the value of the selected radio button.

You may select a variable from the dropdown, or you can create a new variable by clicking New... and entering the name in the field following the @ symbol.

Orientation
Horizontal
The radio buttons are presented in a horizontal fashion.

Vertical
The radio buttons are presented in a vertical fashion.

Text color
The color of the text associated with the radio buttons.
The color can be selected using the color picker or can be specified as:
  • Any valid HTML color name (e.g., red, blue, cyan)
  • An RGB value (e.g., rgb(238,147,12))
  • A hex value (e.g., #d12345)
Text style
The appearance of the text associated with the radio buttons.

When this field gets focus, a dialog is presented that allows the user to select the family, style, size, and other characteristics of the text such as letter spacing and underlining.

Example

<note type="base">Applied to table: pub.demo.retail.item</note>
<dynamic horizontal_selection="738">
  <widget class_="text" name="hmadded__3" relpos_="193,17" 
text_="Selected horizontal value: {@horizontal_selection}"/>
  <widget base_="pub.demo.retail.item" class_="radio" name="hmadded__1" 
relpos_="194,75" textcolor_="#4f81bd" value_="@horizontal_selection">
    <tabu label="Tabulation on Sales Item Detail" breaks="account">
      <break col="account" sort="up"/>
      <tcol source="account" fun="cnt" label="Count"/>
    </tabu>
    <colord cols="account"/>
  </widget>
</dynamic>

Example

<note type="base">Applied to table: pub.demo.retail.item</note>
<dynamic vertical_selection="361">
  <widget class_="text" name="hmadded__2" relpos_="179,59" 
text_="Selected vertical value: {@vertical_selection}"/>
  <widget base_="pub.demo.retail.item" class_="radio" height_="307" 
name="hmadded__4" orientation_="vertical" relpos_="176,104" textcolor_="#e36c09" 
textstyle_="font-weight:bold;letter-spacing:0;" value_="@vertical_selection" width_="68">
    <tabu label="Tabulation on Sales Item Detail" breaks="account">
      <break col="account" sort="up"/>
      <tcol source="account" fun="cnt" label="Count"/>
    </tabu>
    <colord cols="account"/>
  </widget>
</dynamic>