Oracle9iAS Portal Developer Kit

get_path_id function

Contained in package wwpre_api_util.

Call this function to get the preference path ID. The ID corresponds to the last name in the preference path, e.g. if the preference path is 'Oracle.Tools.Portal.Style', then the ID for the name 'Style' is returned.

 function get_path_id
  (
  p_path in varchar2
  )
  return integer;

Version: Oracle Portal 3.0.8

Parameters:

p_path

The path for the preference name.

Datatype: in varchar2

Returns:

This function returns the ID of the preference path.

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:

l_path_id := wwpre_api_util.get_path_id
(

p_path => 'ORACLE.TOOLS.PORTAL.STYLE'

);

Related topics

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