!--a11y-->
Web
Dynpro RadioButtonGroupByKey API - IWDRadioButtonGroupByKey 
The RadioButtonGroupByKey UI element groups multiple radio buttons in a table. Unlike the CheckBoxGroup UI element, this UI element allows the selection of one element only.
The following graphic shows how the UI element is displayed on the user interface:

·
accessibilityDescription
When accessibility is activated, the assigned text is added to the tooltip.
This description provides semantic details of the UI element and is only read
by the screen reader if the user focuses the complete Ul element.
·
colCount
Specifies the number of
columns in which the radio button UI elements are displayed.
·
selectedKey
Specifies the path to the context attribute that stores the currently selected
key.
·
readOnly
Specifies whether or not the
user can select a radio button within the radio button group.
·
state
Describes the error status of
the UI element.
The state property can be filled with the following values
and is represented by the enumeration type WDState.
normal |
Describes the default state of the UI element. |
required |
Specifies whether the entered value is required. |
·
width
Determines the width of the UI element that you can specify in CSS sizes, such
as em, ex, pixels or percentage values.
Name |
Interface |
Type |
Initial Value |
Bindable |
Value Required |
accessibilityDescription |
IWDRadioButtonGroupByKey |
String (Translatable Text) |
|
bindable |
No |
colCount |
IWDRadioButtonGroupByKey |
int |
1 |
bindable |
No |
IWDUIElement |
Boolean |
true |
bindable |
No |
|
selectedKey |
IWDRadioButtonGroupByKey |
String |
|
bindable_mandatory |
Yes |
readOnly |
IWDRadioButtonGroupByKey |
boolean |
false |
bindable |
No |
state |
IWDRadioButtonGroupByKey |
WDState |
normal |
bindable |
No |
IWDUIElement |
String |
|
bindable |
No |
|
IWDUIElement |
WDVisibility |
visible |
bindable |
No |
|
width |
IWDRadioButtonGroupByKey |
String (CSS size) |
|
bindable |
No |
·
onSelect
This property contains the
action that is executed when the RadioButtonGroupByKey UI element is
selected.
Event Parameter |
Type |
key |
String |
See
Parameter
Mapping.
The contex node must contain a context attribute y. The attribute is assigned to a data type that can contain a value set (key value pair). The selected keys of the RadioButtonGroupByKey UI element are the values of this value set. The texts to be displayed are the corresponding descriptions. The currently selected key is identical to the current value of the attribute y. The selectedKey property is bound to the context attribute y.
For further
information, refer to
Data Binding of a
Dropdown List Box and Radio Button Group. For a code example, refer to
Key Binding.
The UI element RadioButtonGroupByKey supports the development of mobile applications for pocket PCs and BlackBerry wireless handhelds (see Mobile Web Dynpro).
However, several properties supported in the desktop browser cannot be used. These include:
Variances of the properties
Properties |
Pocket PC |
BlackBerry wireless handheld |
enabled |
ignored |
ignored |
readOnly |
ignored |
ignored |
state |
ignored |
ignored |
tooltip |
ignored |
ignored |
Method Name |
Parameter |
Return Value |
Description |
bindAccessibilityDescription |
(String path) |
|
Binds the accessibilityDescription property to the context node specified by a path. |
bindColCount |
(String path) |
|
Binds the colCount property to the context node specified by a path. |
bindingOfAccessibilityDescription |
|
String |
Returns the path of the context element to which the accessibilityDescription property is bound. Returns NULL if no binding exists. |
bindingOfColCount |
|
String |
Returns the path of the context element to which the colCount property is bound. Returns NULL if no binding exists. |
bindingOfSelectedKey |
|
String |
Returns the path of the context element to which the selectedKey property is bound. Returns NULL if no binding exists. |
bindingOfReadOnly |
|
String |
Returns the path of the context element to which the readOnly property is bound. Returns NULL if no binding exists. |
bindingOfState |
|
String |
Returns the path of the context element to which the state property is bound. Returns NULL if no binding exists. |
bindingOfWidth |
|
String |
Returns the path of the context element to which the width property is bound. Returns NULL if no binding exists. |
bindSelectedKey |
(String path) |
|
Binds the value of the selectedKey property to the context element specified by the path. |
bindReadOnly |
(String path) |
|
Binds the readOnly property to the context node specified by a path. |
bindState |
(String path) |
|
Binds the state property to the context node specified by a path. |
bindWidth |
(String path) |
|
Binds the value of thewidthproperty to the context element specified by the path |
getAccessibilityDescription |
|
String |
Returns the value of the accessibilityDescription property. |
getColCount |
|
int |
Returns the value of the colCount property. |
getOnSelect |
|
IWDAction |
Returns the action that is executed when the onSelect event is triggered. |
getSelectedKey |
|
String |
Returns the value of the selectedKey property. |
getReadOnly |
|
boolean |
Returns the value of the readOnly property. |
getState |
|
WDState |
Returns the value of the state property. |
getWidth |
|
String |
Returns the value of the width property. |
mappingOfOnSelect |
|
IWDParameterMapping |
Returns the parameter mapping for the onSelect action. |
setAccessibilityDescription |
(String accessibilityDescription) |
|
Sets the value of the accessibilityDescription property. |
setColCount |
(int colCount) |
|
Sets the value of the colCount property. |
setOnSelect |
(IWDAction action) |
|
Sets the action that is executed when the onSelect event is triggered. |
setSelectedKey |
(String selectedKey) |
|
Sets the value of the selectedKey property. |
setReadOnly |
(boolean value) |
|
Sets the value of the readOnly property. |
setState |
(WDState state) |
|
Sets the value of the state property. |
setWidth |
(String width) |
|
Sets the value of the width property. |
Additional methods are available using inheritance: IWDUIElement, IWDViewElement.

For detailed documentation of all inherited methods, see the documentation for the relevant APIs.
