Home > APEX_UTIL > FETCH_APP_ITE...
Previous |
Next |
This function fetches session state for the current or specified application in the current or specified session.
Syntax
APEX_UTIL.FETCH_APP_ITEM( p_item IN VARCHAR2, p_app IN NUMBER DEFAULT NULL, p_session IN NUMBER DEFAULT NULL) RETURN VARCHAR2;
Parameters
Table: FETCH_APP_ITEM Parameters describes the parameters available in the FETCH_APP_ITEM
function.
FETCH_APP_ITEM Parameters
Parameter | Description |
---|---|
|
The name of an application-level item (not a page item) whose current value is to be fetched |
|
The ID of the application that owns the item (leave null for the current application) |
|
The session ID from which to obtain the value (leave null for the current session) |
Example
The following example shows how to use the FETCH_APP_ITEM
function to obtain the value of the application item 'F300_NAME
' in application 300. As no value is passed for p_session
, this defaults to the current session state value.
DECLARE VAL VARCHAR2(30); BEGIN VAL := APEX_UTIL.FETCH_APP_ITEM( p_item => 'F300_NAME', p_app => 300); END;