Home > APEX_ITEM > SELECT_LIST_F...
Previous |
Next |
This function is the same as SELECT_LIST_FROM_QUERY
, but its return value is a CLOB. This allows its use in SQL queries where you need to handle a column value longer than 4000 characters. Similar to other functions available in the APEX_ITEM
package, these select list functions are designed to generate forms with F01
to F50
form array elements.
Syntax
APEX_ITEM.SELECT_LIST_FROM_QUERY_XL( p_idx IN NUMBER, p_value IN VARCHAR2 DEFAULT NULL, p_query IN VARCHAR2, p_attributes IN VARCHAR2 DEFAULT NULL, p_show_null IN VARCHAR2 DEFAULT 'YES', p_null_value IN VARCHAR2 DEFAULT '%NULL%', p_null_text IN VARCHAR2 DEFAULT '%', p_item_id IN VARCHAR2 DEFAULT NULL, p_item_label IN VARCHAR2 DEFAULT NULL, p_show_extra IN VARCHAR2 DEFAULT 'YES') RETURN CLOB;
Parameters
Table: SELECT_LIST_FROM_QUERY_XL Parameters describes the parameters available in the SELECT_LIST_FROM_QUERY_XL
function.
SELECT_LIST_FROM_QUERY_XL Parameters
Parameter | Description |
---|---|
|
Form element name. For example, |
|
Current value. This value should be a value in the |
|
SQL query that is expected to select two columns, a display column, and a return column. For example: SELECT dname, deptno FROM dept Note that this is used only by the Also note, if only one column is specified in the select clause of this query, the value for this column will be used for both display and return purposes. |
|
Extra HTML parameters you want to add. |
|
Extra select option to enable the NULL selection. Range of values is |
|
Value to be returned when a user selects the NULL option. Only relevant when |
|
Value to be displayed when a user selects the NULL option. Only relevant when |
|
HTML attribute ID for the |
|
Invisible label created for the item. |
|
Show the current value even if the value of |
Example
The following example demonstrates a select list based on a SQL query.
SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY_XL(3,job,'SELECT DISTINCT job FROM emp')job FROM emp