42.56 GET_PREFERENCE Function
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 42-50 GET_PREFERENCE Parameters
| Parameter | Description | 
|---|---|
| 
 | Name of the preference to retrieve the value. | 
| 
 | 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;
Parent topic: APEX_UTIL