Oracle9iAS Portal Developer Kit

portlet_text function

Contained in package wwui_api_portlet.

Call this function to return the string with the Cascading Style Sheets (CSS) font settings for text in a portlet body.

Note: Since CSS are rendered by the page engine, they are only available in the Oracle Portal pages. The portlet implementations should only use this API in MODE_SHOW of the portlet's show method. The CSS are not available in the other modes of the portlet's show method.

function portlet_text
(
  p_string in varchar2,
  p_level in number
) return varchar2;

Version: Oracle Portal 3.0.6.6.5 or later

Parameters:

p_string

The string on which the CSS style is to be applied.

Datatype: in varchar2

p_level

The heading level that indicates the size. Possible values are 1, 2, 3, and 4.

Datatype: in number

Returns:

This function returns a varchar2 with the CSS font settings for text within a portlet body at the specified level. If a 'null' string is passed, it returns the CSS class name.

Exceptions:

This function raises no exceptions.

Example:

l_text := 'Type the name of the User';

  l_text := wwui_api_portlet.portlet_text

  (

  p_string => l_text,

  p_level => 3

  );

  htp.p('<td>'||l_text||'</td>');

Related topics

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