58.126 SET_PREFERENCE Procedure
This procedure sets a preference that persists beyond the user's current session.
Syntax
APEX_UTIL.SET_PREFERENCE (
    p_preference   IN    VARCHAR2 DEFAULT NULL,
    p_value        IN    VARCHAR2 DEFAULT NULL,
    p_user         IN    VARCHAR2 DEFAULT NULL );Parameters
| Parameter | Description | 
|---|---|
| p_preference | Name of the preference (case-sensitive). | 
| p_value | Value of the preference. | 
| p_user | User for whom the preference is being set. | 
Example
The following example shows how to use the SET_PREFERENCE procedure to set a preference called 'default_view' to the value 'WEEKLY' that persists beyond session for the currently authenticated user.
                  
BEGIN
    APEX_UTIL.SET_PREFERENCE(        
        p_preference => 'default_view',
        p_value      => 'WEEKLY',      
        p_user       => :APP_USER); 
END;
Parent topic: APEX_UTIL