23.12 RADIOGROUP Function
This function generates a radio group from a SQL query.
Syntax
APEX_ITEM.RADIOGROUP(
    p_idx              IN    NUMBER,
    p_value            IN    VARCHAR2 DEFAULT NULL,
    p_selected_value   IN    VARCHAR2 DEFAULT NULL,
    p_display          IN    VARCHAR2 DEFAULT NULL,
    p_attributes       IN    VARCHAR2 DEFAULT NULL,
    p_onblur           IN    VARCHAR2 DEFAULT NULL,
    p_onchange         IN    VARCHAR2 DEFAULT NULL,
    p_onfocus          IN    VARCHAR2 DEFAULT NULL,
    p_item_id          IN    VARCHAR2 DEFAULT NULL,
    p_item_label       IN    VARCHAR2 DEFAULT NULL)
    RETURN VARCHAR2;Parameters
Table 23-12 RADIOGROUP Parameters
| Parameter | Description | 
|---|---|
| 
 | Number that determines which  | 
| 
 | Value of the radio group. | 
| 
 | Value that should be selected. | 
| 
 | Text to display next to the radio option. | 
| 
 | Extra HTML parameters you want to add. | 
| 
 | JavaScript to execute in the  | 
| 
 | JavaScript to execute in the  | 
| 
 | JavaScript to execute in the  | 
| 
 | HTML attribute ID for the <input> tag | 
| 
 | Invisible label created for the item | 
Example
The following example demonstrates how to select department 20 from the emp table as a default in a radio group.
                  
SELECT APEX_ITEM.RADIOGROUP (1,deptno,'20',dname) dt
FROM   dept
ORDER  BY 1
Parent topic: APEX_ITEM (Legacy)