Home > APEX_ITEM > 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,
p_selected_value IN VARCHAR2 DEFAULT,
p_display IN VARCHAR2 DEFAULT,
p_attributes IN VARCHAR2 DEFAULT,
p_onblur IN VARCHAR2 DEFAULT,
p_onchange IN VARCHAR2 DEFAULT,
p_onfocus IN VARCHAR2 DEFAULT,)
RETURN VARCHAR2;
Parameters
Table: RADIOGROUP Parameters describes the parameters available in the RADIOGROUP function.
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 |
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