| set_value_as_date procedure

Related topics
Contained in package wwpre_api_value. Call this procedure to set a date value for a preference. procedure set_value_as_date ( p_path in varchar2, p_name in varchar2, p_level_type in varchar2, p_level_name in varchar2, p_value in date, p_commit in boolean default FALSE );

Version: Oracle Portal 3.0.6.6.5 or later
Parameters:
p_path | The path for the preference name. Datatype: in varchar2
p_name | The preference name. Datatype: in varchar2
p_level_type | A constant value for the level at which the value is stored. Datatype: in varchar2
p_level_name | The user name or group name associated with the value to be stored. Note: If the level type is SYSTEM, then level name must be NULL. Datatype: in varchar2
p_value | The date value to be stored. Datatype: in date
p_commit | This parameter is now obsolete. It is left here only to ensure that when older code is used, it still compiles.
Exceptions: If the value is not date, VALUE_ERROR_EXCEPTION is raised. If the path is not found, PATH_NOT_FOUND_EXCEPTION is raised. If a duplicate path is found, DUPLICATE_PATH_EXCEPTION is raised. If the name is not found, NAME_NOT_FOUND_EXCEPTION is raised. If a duplicate preference name exists for the specified path, DUPLICATE_NAME_EXCEPTION is raised. If the value has not been stored, GENERAL_PREFERENCE_EXCEPTION is raised. Example: wwpre_api_value.set_value_as_date ( p_path => 'company.portal.portlet.'||l_portlet_id, p_name => 'MODIFIED_DATE', p_level_type => wwpre_api_value.USER_LEVEL_TYPE, p_level_name => wwctx_api.get_user, p_value => sysdate );

Related topics
Preference API package | PDK PL/SQL API Reference - Home

Back to top
The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio