36.120 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
Table 36-104 SET_PREFERENCE Parameters
| Parameter | Description | 
|---|---|
| 
 | Name of the preference (case-sensitive). | 
| 
 | Value of the preference. | 
| 
 | 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;
See Also:
Parent topic: APEX_UTIL