Oracle9iAS Portal Developer Kit

get_name function

Contained in package wwpre_api_util.

Call this function to get the preference name record. The function returns the record for the preference name based on the path.

function get_name
  (
  p_path in varchar2,
  p_name in varchar2
  )
  return name_record;

Version: Oracle Portal 3.0.8

Parameters:

p_path

The path for the preference name.

Datatype: in varchar2

p_name

The preference name.

Datatype: in varchar2

Returns:

This function returns the preference name record.

Exceptions:

  • If the path is not found, a PATH_NOT_FOUND_EXCEPTION is raised.

  • If a duplicate path is found, a DUPLICATE_PATH_EXCEPTION is raised.

Example:

declare

l_name_record wwpre_api_util.name_record;

begin

l_name_record := wwpre_api_util.get_name
(

p_path => 'ORACLE.TOOLS.PORTAL.STYLE',
p_name => 'BGCOLOR'

);

end;

Related topics

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