Usage of Radio Button Group - imona/tutorial GitHub Wiki

Transient Radio Button

You can add a Radio Button Group from toolbox by drag-drop action. In order to add an item/items you can use addItem method like:

addItem("radio", "en", ["caption English"]);
addItem("radio", "tr", ["caption Turkish"]);
addItem("radio", "fr", ["caption French"]);

In order to select the item, the following code snippet may be used:

getComponent("radio").value = "tr";

Persistent Radio Button

Persistent Radio Button is a rendering type of Lists.

getComponent("radio").selectByKey = "tr";  

Other Features

  • focus(): Focus on the target component

  • height: Sets height on the target component.

  • readOnly:Sets the target component as read-only or editable;

  • removeSelected() Removes selected item(s) from the field. Field can be permanent or transient. Remove operation works on UI level for embedded tables, doesn't effect database record.

    Parameters: item - item to be removed

    Example: getComponent("radio").removeSelected();

  • requried: Require the target component as mandatory or optional

  • value: Set/Get value the target component

  • visible: Sets the target component as visible or invisible

  • width: Sets width on the target component.