Application Express User's Guide > Oracle Application Express ... > HTMLDB_ITEM > TEXT_FROM_LOV Fun...
TEXT_FROM_LOV Function |
Previous |
Next |
Use this function to display an item as text, deriving the display value of the named LOV.
Syntax
HTMLDB_ITEM.TEXT_FROM_LOV ( p_value IN VARCHAR2 DEFAULT NULL, p_lov IN VARCHAR2, p_null_text IN VARCHAR2 DEFAULT '%') RETURN VARCHAR2;
Parameters
Table: TEXT_FROM_LOV Parameters describes the parameters available in the TEXT_FROM_LOV
function.
TEXT_FROM_LOV Parameters
Parameter | Description |
---|---|
|
Value of a field item. |
|
Text name of a shared list of values. This list of values must be defined in your application. |
|
Value to be displayed when the value of the field item is null or a corresponding entry is not located for the value |
Example
The following example demonstrates how to derive the display value from a named LOV (EMPNO_ENAME_LOV
).
SELECT HTMLDB_ITEM.TEXT_FROM_LOV(empno,'EMPNO_ENAME_LOV') c FROM emp