|  Previous |  Next | 
This function retrieves the value of a previously saved preference for a given user.
Syntax
APEX_UTIL.GET_PREFERENCE (
    p_preference  IN    VARCHAR2 DEFAULT NULL,
    p_user        IN    VARCHAR2 DEFAULT V('USER')) 
RETURN VARCHAR2;
Parameters
Table: GET_PREFERENCE Parameters describes the parameters available in the GET_PREFERENCE function.
GET_PREFERENCE Parameters
| Parameter | Description | 
|---|---|
| 
 | Name of the preference to retrieve the value | 
| 
 | Value of the preference | 
| 
 | User for whom the preference is being retrieved | 
Example
The following example shows how to use the GET_PREFERENCE function to return the value for the currently authenticated user's preference named 'default_view'.
DECLARE
    l_default_view    VARCHAR2(255);
BEGIN
    l_default_view := APEX_UTIL.GET_PREFERENCE(      
        p_preference => 'default_view',
        p_user       => :APP_USER);
END;