Application Express User's Guide > Oracle Application Express ... > HTMLDB_ITEM > RADIOGROUP Function
RADIOGROUP Function |
Previous |
Next |
This function generates a radio group from a SQL query.
Syntax
HTMLDB_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 onBlur event. |
|
JavaScript to execute in the onChange event. |
|
JavaScript to execute in the onFocus event. |
Example
The following example demonstrates how to select department 20 from the emp
table as a default in a radio group.
SELECT HTMLDB_ITEM.CHECKBOX(1,deptno,'20',dname) dt FROM dept ORDER BY 1