Overview | Package | Object Type | Deprecated | Index | Help
| Oracle Application Server Portal PL/SQL API Reference - 10.1.4
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES
SUMMARY: EXCEPTION | TYPE | CONSTANT | VARIABLE | FUNCTION/PROCEDURE | DETAIL: EXCEPTION | TYPE | CONSTANT | VARIABLE | FUNCTION/PROCEDURE

## Package wwui_api_portlet

This package contains methods that allow providers to integrate page styles into their portlets. In addition there are APIs for drawing a portlet header and border.

A page style controls the colors and fonts used to render an Oracle portal page and all the portlets displayed within it. It is recommended that portlet developers integrate page styles in their portlets in order to create portlets that, when rendered in an Oracle Portal page, are consistent with the style used in that page and other portlets in that page.

When an Oracle Portal page is rendered, it includes a Cascading Style Sheet (CSS) with the definitions of the page's style settings. These styles are available to portlet developers through the wwui_api_portlet APIs. Since CSS are rendered by the page engine, they are only available in the Oracle Portal pages. You should only use these APIs in MODE_SHOW of the portlet's show method. The CSS are not available in the other modes of the portlet's show method.

To create dialogs, use methods in the wwui_api_portlet_dialogs package.

Scope:
  Public
Since:
  Oracle Portal 3.0.6.6.5

Constant Summary
`ABOUT_HREF_TAG` | `varchar2(20)`
`ABOUT_LABEL_TAG` | `varchar2(20)`
`ABOUT_TAG` | `varchar2(20)`
`BODY_TAG` | `varchar2(20)`
`COLLAPSE_HREF_TAG` | `varchar2(20)`
`COLLAPSE_LABEL_TAG` | `varchar2(20)`
`COLLAPSE_TAG` | `varchar2(20)`
`CUSTOMIZE_HREF_TAG` | `varchar2(20)`
`CUSTOMIZE_LABEL_TAG` | `varchar2(20)`
`CUSTOMIZE_TAG` | `varchar2(20)`
`HELP_HREF_TAG` | `varchar2(20)`
`HELP_LABEL_TAG` | `varchar2(20)`
`HELP_TAG` | `varchar2(20)`
`REMOVE_HREF_TAG` | `varchar2(20)`
`REMOVE_LABEL_TAG` | `varchar2(20)`
`REMOVE_TAG` | `varchar2(20)`
`TITLE_HREF_TAG` | `varchar2(20)`
`TITLE_LABEL_TAG` | `varchar2(20)`
`TITLE_TAG` | `varchar2(20)`

Function/Procedure Summary
`close_portlet` Closes the table and the table cell for a portlet opened with the procedure open_portlet. | ``
`draw_error_portlet` Draw an error portlet. | ``
`draw_error_portlet_header` Draw the header for an error portlet. | ``
`draw_portlet_header` Draws the header for the portlet. | ``
`draw_xml_header` Draws the header for XML portlets. | ``
`get_refresh_url` Returns the url for refreshing a single portlet on a page. | `varchar2`
`open_portlet` Opens the table and the table cell for the portlet. | ``
`portlet_body_color` Returns the CSS class for the portlet body color. | `varchar2`
`portlet_header_color` Returns the CSS class for the portlet header color. | `varchar2`
`portlet_headerlink` Returns the string with the CSS font settings for a link in the portlet header. | `varchar2`
`portlet_headertext` Returns the string with the CSS font settings for text in the portlet header. | `varchar2`
`portlet_heading` Returns the string with the CSS font settings for a heading in the portlet body. | `varchar2`
`portlet_subheader_color` Returns the CSS class for the portlet subheader color. | `varchar2`
`portlet_subheaderlink` Returns the string with the CSS font settings for a link in the portlet subheader. | `varchar2`
`portlet_subheadertext` Returns the string with the CSS font settings for text in the portlet subheader. | `varchar2`
`portlet_text` Returns the string with the CSS font settings for text in the portlet body. | `varchar2`
`render_portlet_bottom` Draws the bottom of the portlet. | ``
`render_portlet_top` Draws the top of the portlet. | ``

Constant Detail

### ABOUT_HREF_TAG

    ABOUT_HREF_TAG constant varchar2(20) := '#ABOUT.LINK#'

### ABOUT_LABEL_TAG

    ABOUT_LABEL_TAG constant varchar2(20) := '#ABOUT.LABEL#'

### ABOUT_TAG

    ABOUT_TAG constant varchar2(20) := '#ABOUT#'

### BODY_TAG

    BODY_TAG constant varchar2(20) := '#BODY#'

### COLLAPSE_HREF_TAG

    COLLAPSE_HREF_TAG constant varchar2(20) := '#COLLAPSE.LINK#'

### COLLAPSE_LABEL_TAG

    COLLAPSE_LABEL_TAG constant varchar2(20) := '#COLLAPSE.LABEL#'

### COLLAPSE_TAG

    COLLAPSE_TAG constant varchar2(20) := '#COLLAPSE#'

### CUSTOMIZE_HREF_TAG

    CUSTOMIZE_HREF_TAG constant varchar2(20) := '#CUSTOMIZE.LINK#'

### CUSTOMIZE_LABEL_TAG

    CUSTOMIZE_LABEL_TAG constant varchar2(20) := '#CUSTOMIZE.LABEL#'

### CUSTOMIZE_TAG

    CUSTOMIZE_TAG constant varchar2(20) := '#CUSTOMIZE#'

### HELP_HREF_TAG

    HELP_HREF_TAG constant varchar2(20) := '#HELP.LINK#'

### HELP_LABEL_TAG

    HELP_LABEL_TAG constant varchar2(20) := '#HELP.LABEL#'

### HELP_TAG

    HELP_TAG constant varchar2(20) := '#HELP#'

### REMOVE_HREF_TAG

    REMOVE_HREF_TAG constant varchar2(20) := '#REMOVE.LINK#'

### REMOVE_LABEL_TAG

    REMOVE_LABEL_TAG constant varchar2(20) := '#REMOVE.LABEL#'

### REMOVE_TAG

    REMOVE_TAG constant varchar2(20) := '#REMOVE#'

### TITLE_HREF_TAG

    TITLE_HREF_TAG constant varchar2(20) := '#TITLE.LINK#'

### TITLE_LABEL_TAG

    TITLE_LABEL_TAG constant varchar2(20) := '#TITLE.LABEL#'

### TITLE_TAG

    TITLE_TAG constant varchar2(20) := '#TITLE#'

Function/Procedure Detail

### close_portlet

    procedure close_portlet

  Closes the table and the table cell for a portlet opened with the procedure open_portlet.

  Example:

         wwui_api_portlet.close_portlet;

  Since:
    Oracle Portal 3.0.6.6.5

### draw_error_portlet

    procedure draw_error_portlet(
        p_has_border in boolean default false
    )

  Draw an error portlet. Write out the html to display an error as a portlet. The portlet "content" is represented by the placeholder '{1}' which will be replaced by the error message.

  Parameters:
    `p_has_border` - true if portlet should be drawn with a border

### draw_error_portlet_header

    procedure draw_error_portlet_header

  Draw the header for an error portlet. Write out the html for the header of an error portlet. The portlet title is represented by the placeholder '{1}' which will be replaced by the error message.

### draw_portlet_header

    procedure draw_portlet_header(
        p_provider_id in integer,
        p_portlet_id in integer,
        p_title in varchar2,
        p_has_details in boolean default false,
        p_has_edit in boolean default false,
        p_has_edit_defaults in boolean default false,
        p_has_help in boolean default false,
        p_has_about in boolean default false,
        p_show_details in boolean default true,
        p_show_edit in boolean default true,
        p_show_help in boolean default true,
        p_show_about in boolean default true,
        p_show_refresh in boolean default false,
        p_show_remove in boolean default true,
        p_show_collapse in boolean default true,
        p_is_collapsed in boolean default false,
        p_referencepath in varchar2,
        p_back_url in varchar2 default null,
        p_refresh_url in varchar2 default null,
        p_page_url in varchar2 default null,
        p_encode_urls in boolean default true,
        p_pref in varchar2 default null,
        p_portlet_refresh_url in varchar2 default null,
        p_show_full_screen_decoration in boolean default true
    )

  Draws the header for the portlet.

  This procedure draws the header for the portlet. The portlet Show method can call this procedure when the page calls portlet.show. This API can be used by the provider to draw the portlet header in the Show mode of the portlet show method. It is recommended that the portlet header be drawn if the has_title property passed to the Show method is true.

  Note: If you are using Oracle Portal 9.0.2 or later, it is recommended that you use render_portlet_top to draw the portlet header rather than the draw_portlet_header procedure described here.

  Example:

         if (p_portlet_record.has_title_region) then
           --- Draw the portlet header and specify what links are available
           --- from that header (i.e. details, customize, help, and about).
           --- The has_title property is set at the page region level.
           wwui_api_portlet.draw_portlet_header
           (
             p_provider_id   => p_portlet_record.provider_id,
             p_portlet_id    => p_portlet_record.portlet_id,
             p_title         => 'My Portlet Title',
             p_has_details   => true,
             p_has_edit      => true,
             p_has_help      => true,
             p_has_about     => true,
             p_referencepath => p_portlet_record.reference_path,
             p_back_url      => p_portlet_record.page_url
           );
         end if;

  Parameters:
    `p_provider_id` - the ID of the provider to which the portlet belongs
    `p_portlet_id` - the portlet id
    `p_title` - the portlet title
    `p_has_details` - indicates whether the portlet implements mode_show_details. MODE_SHOW_DETAILS is one of the display modes of the show_portlet method (database provider) and of PortletRenderer.render (Web provider). It displays detailed information implemented by the portlet.
    `p_has_edit` - indicates whether the portlet implements mode_show_edit. MODE_SHOW_EDIT is one of the display modes of the show_portlet method (database provider) and of PortletRenderer.render (Web provider). It implements an interface for user customizations for an individual instance of a portlet. Note that:
    -a portlet instance refers to the placement of an individual portlet on a Oracle Portal page.
    -user customizations are values that a user can modify to change the appearance/content of individual portlet.
    `p_has_edit_defaults` - indicates whether the portlet implements mode_show_edit_defaults. MODE_SHOW_EDIT_DEFAULTS is one of the display modes of the show_portlet method (database provider) and of PortletRenderer.render (Web provider). It implements an interface for default customizations for an individual instance of a portlet. Note that:
    -a portlet instance refers to the placement of an individual portlet on a Oracle Portal page.
    -default customizations are values that can be modified to change the appearance and content of a portlet for all users.
    `p_has_help` - indicates whether the portlet implements mode_show_help, i.e. can display help information about the portlet
    `p_has_about` - indicates whether the portlet implements mode_show_about, i.e. can display information such as that found in the About box of any application
    `p_show_details` - indicates whether the portlet displays detailed information implemented by the portlet. Note: This field available with Oracle9iAS Portal 9.0.2 or later.
    `p_show_edit` - indicates whether the portlet displays a Customize link. Note: This field available with Oracle9iAS Portal 9.0.2 or later.
    `p_show_help` - indicates whether the portlet displays a Help link. Note: This field available with Oracle9iAS Portal 9.0.2 or later.
    `p_show_about` - indicates whether the portlet displays an About link. Note: This field is available with Oracle9iAS Portal 9.0.2 or later.
    `p_show_refresh` - indicates whether the portlet displays a Refresh link. Note: This field is available with Oracle9iAS Portal 10.0.4 or later.
    `p_show_remove` - indicates whether the portlet displays a Remove icon. Note: This field is available with Oracle9iAS Portal 9.0.2 or later.
    `p_show_collapse` - indicates whether the portlet displays a Collapse/Restore link. Note: This field is available with Oracle9iAS Portal 9.0.2 or later.
    `p_is_collapsed` - indicates whether the portlet content is collapsed. Note: This field is available with Oracle9iAS Portal 9.0.2 or later.
    `p_referencepath` - the portlet instance ID. A portlet instance refers to the placement of an individual portlet within an individual Oracle Portal page. The value for p_reference_path passed into the Show method in the portlet record should be used for this parameter.
    `p_back_url` - the URL for the calling page passed through the links generated in the portlet header. The value for the p_back_url parameter should be set to the value of the parameter p_portlet_record.page_url passed on show method. If p_encode_urls is true, this indicates that this url is not url encoded, so it will be encoded before being used as a parameter to in another url. In this case, p_back_url is the same as p_page_url.
    `p_refresh_url` - The URL for the calling page which invalidates the fully cached page before redisplaying the page. Thus the page is reloaded/built from the database, rather than from cache. If p_encode_urls is true, this indicates that this url is not url encoded, so it will be encoded before being used as a parameter in another url. Note: This field is available with Oracle9iAS Portal 9.0.2 or later.
    `p_page_url` - the URL for the calling page passed through the links generated in the portlet header. The value for the p_page_url parameter should be set to the value of the parameter p_portlet_record.page_url passed on show method. This url was added to allow the url to redisplay the page to be different when the url is rendered directly in the html as opposed to when it is passed as a parameter in another url. Note: This field is available with Oracle Portal 10.1.4 or later.
    `p_encode_urls` - indicates if p_back_url and p_refresh_url should be url encoded before being used as a parameter in another url. The default is true, they should be encoded because they are passed unencoded. This should only be passed as false when rendering the portlet header for a page portlet where the urls are already encoded and should be used modification. Note: This field is available with Oracle Portal 10.1.4 or later.
    `p_pref` - The full portlet instance reference. This full type of reference identifies a portlet item on a page. It is used for portlet refresh. (p_referencepath is not always unique on a page, eg when a page portlet is included on a page twice.) Note: This field is available with Oracle Portal 10.1.4 or later.
    `p_portlet_refresh_url` - the URL of the page containing the portlet instance and used for creating the portlet refresh link. If the portlet is in a page portlet it will be the URL for the page portlet, otherwise it will be the page_url. Note: This field is available with Oracle Portal 10.1.4 or later.
    `p_show_full_screen_decoration` - Set to true to view the banner and smartlinks within full screen mode calls of the portlet.
  Since:
    Oracle Portal 3.0.6.6.5

### draw_xml_header

    procedure draw_xml_header(
        p_provider_id in integer,
        p_portlet_id in integer,
        p_title in varchar2,
        p_has_details in boolean default false,
        p_has_edit in boolean default false,
        p_has_edit_defaults in boolean default false,
        p_has_help in boolean default false,
        p_has_about in boolean default false,
        p_referencepath in varchar2,
        p_back_url in varchar2 default null
    )

  Draws the header for XML portlets.

  The portlet Show method can call this procedure when the page calls portlet.show. This procedure generates HTML that follows the XML standard.

  Note: It is recommended that the portlet header be drawn if the has_title property passed to the Show method is TRUE.

  Example:

         if (p_portlet_record.has_title_region) then
           --- Draw the XML portlet header and specify what links are available
           --- from that header (i.e. details, customize, help, and about).
           --- The has_title property is set at the page region level.
         wwui_api_portlet.draw_xml_header(
           p_provider_id     => p_portlet_record.provider_id,
           p_portlet_id      => p_portlet_record.portlet_id,
           p_title           => 'Title',
           p_has_details     => true,
           p_has_edit        => true,
           p_has_help        => true,
           p_has_about       => true,
           p_referencepath   => p_portlet_record.reference_path,
           p_back_url        => p_portlet_record.page_url);
         end if;

  Parameters:
    `p_provider_id` - the ID of the provider to which the portlet belongs.
    `p_portlet_id` - the portlet id
    `p_title` - the portelt title
    `p_has_details` - indicates whether the portlet implements mode_show_details. MODE_SHOW_DETAILS is one of the display modes of the show_portlet method (database provider) and of PortletRenderer.render (Web provider). It displays detailed information implemented by the portlet.
    `p_has_edit` - indicates whether the portlet implements mode_show_edit. MODE_SHOW_EDIT is one of the display modes of the show_portlet method (database provider) and of PortletRenderer.render (Web provider). It implements an interface for user customizations for an individual instance of a portlet. Note that:
    -a portlet instance refers to the placement of an individual portlet on a Oracle Portal page.
    -user customizations are values that a user can modify to change the appearance/content of individual portlet.
    `p_has_help` - indicates whether the portlet implements mode_show_help, i.e. can display help information about the portlet
    `p_has_about` - indicates whether the portlet implements mode_show_about, i.e. can display information such as that found in the About box of any application
    `p_referencepath` - the portlet instance ID. A portlet instance refers to the placement of an individual portlet within an individual Oracle Portal page. The value for p_reference_path passed into the Show method in the portlet record should be used for this parameter.
    `p_back_url` - the URL for the calling page passed through the links generated in the portlet header. The value for the p_back_url parameter should be set to the value of the parameter p_portlet_record.page_url passed on show method.
  Since:
    Oracle Portal 3.0.6.6.5

### get_refresh_url

    function get_refresh_url(
        p_url in varchar2,
        p_pref in varchar2
    ) return varchar2

  Returns the url for refreshing a single portlet on a page.

  Example:

         htf.anchor(
             curl => wwui_api_portlet.get_refresh_url(
                 p_url => p_portlet_runtime_record.page_url,
                 p_pref => p_portlet_runtime_record.pref),
             ctext => 'Refresh Portlet');

  Parameters:
    `p_url` - the url for the page.
    `p_pref` - the pref of the portlet instance.
  Returns:
    the link for refreshing the portlet.
  Since:
    Oracle Portal 10.0.4P

### open_portlet

    procedure open_portlet(
        p_has_border in boolean default false,
        p_height in number default null,
        p_is_collapsed in boolean default false,
        p_pref in varchar2 default null
    )

  Opens the table and the table cell for the portlet.

  The has_border and height properties passed to the portlet's show method should passed into this API. The value for the has_border property passed to the portlets show method is set at the page region level. The value for the height property is set at the portlet instance level.

  Note: Use this API in conjunction with close_portlet to encapsulate the portlet content.

  Example:

         wwui_api_portlet.open_portlet(
             p_has_border => p_portlet_record.has_border
             p_height     => p_portlet_record.height);

  Parameters:
    `p_has_border` - whether to show the border around the portlet content
    `p_height` - height of the portlet content in pixels.
    `p_is_collapsed` - whether the portlet is collapsed or not.
    `p_pref` - the full portlet instance reference.
  Since:
    Oracle Portal 3.0.6.6.5

### portlet_body_color

    function portlet_body_color
    return varchar2

  Returns the CSS class for the portlet body color.

  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.

  Example:

         wwui_api_portlet.portlet_body_color;
         htp.p('<TR class="'||

         wwui_api_portlet.portlet_body_color ||'">');

  Returns:
    a varchar2 with the CSS font settings for the portlet body color
  Since:
    Oracle Portal 3.0.6.6.5

### portlet_header_color

    function portlet_header_color
    return varchar2

  Returns the CSS class for the portlet header color.

  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.

  Example:

         wwui_api_portlet.portlet_header_color;
         htp.p('<TR class="'||

           wwui_api_portlet.portlet_header_color ||'">');

  Returns:
    a varchar2 with the CSS font settings for the portlet header color
  Since:
    Oracle Portal 3.0.6.6.5

### portlet_headerlink

    function portlet_headerlink(
        p_string in varchar2
    ) return varchar2

  Returns the string with the CSS font settings for a link in the portlet header.

  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.

  Example:

         l_headerlink := 'Info';
         l_headerlink := wwui_api_portlet.portlet_headerlink
          (
             p_string => l_headerlink
          );
         htp.p('<td>'||l_headerlink||'</td>');

  Parameters:
    `p_string` - the string to which the CSS style is to be applied
  Returns:
    a varchar2 with the CSS font settings for a link in the portlet header. If a 'null' string is passed, it returns the CSS class name.
  Since:
    Oracle Portal 3.0.6.6.5

### portlet_headertext

    function portlet_headertext(
        p_string in varchar2
    ) return varchar2

  Returns the string with the CSS font settings for text in the portlet header.

  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.

  Example:

         l_headertext := 'Welcome';
         l_headertext := wwui_api_portlet.portlet_headertext
           (
             p_string => l_headertext
           );
           htp.p('<td>'||l_headertext||'</td>');

  Parameters:
    `p_string` - the string on which the CSS style is to be applied
  Returns:
    a varchar2 with the CSS font settings for text within a portlet header at the specified level. If a 'null' string is passed, it returns the CSS class name.
  Since:
    Oracle Portal 3.0.6.6.5

### portlet_heading

    function portlet_heading(
        p_string in varchar2,
        p_level in number
    ) return varchar2

  Returns the string with the CSS font settings for a heading in the 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.

  Example:

         l_header := 'Users';
         l_header := wwui_api_portlet.portlet_heading
           (
             p_string    => l_header,
             p_level     => 3
           );
           htp.p('<td>'||l_header||'</td>');

  Parameters:
    `p_string` - the string on which the CSS style is to be applied
    `p_level` - the heading level that indicates the size. The possible values are 1, 2, 3 and 4.
  Returns:
    a varchar2 with the CSS font settings for a heading within a portlet body at the specified level. If a 'null' string is passed, it returns the CSS class name.
  Since:
    Oracle Portal 3.0.6.6.5

### portlet_subheader_color

    function portlet_subheader_color
    return varchar2

  Returns the CSS class for the portlet subheader color.

  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.

  Example:

         wwui_api_portlet.portlet_subheader_color;
         htp.p('<TR class="'||

           wwui_api_portlet.portlet_subheader_color ||'">');

  Returns:
    a varchar2 with the CSS font settings for the portlet subheader color
  Since:
    Oracle Portal 3.0.6.6.5

### portlet_subheaderlink

    function portlet_subheaderlink(
        p_string in varchar2
    ) return varchar2

  Returns the string with the CSS font settings for a link in the portlet subheader.

  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.

  Example:

         l_subheaderlink := 'Info';
         l_subheaderlink := wwui_api_portlet.portlet_subheaderlink
           (
             p_string => l_subheaderlink
           );
           htp.p('<td>'||l_subheaderlink||'</td>');

  Parameters:
    `p_string` - the string on which the CSS style is to be applied
  Returns:
    a varchar2 with the CSS font settings for a link in the portlet subheader. If a 'null' string is passed, it returns the CSS class name.
  Since:
    Oracle Portal 3.0.6.6.5

### portlet_subheadertext

    function portlet_subheadertext(
        p_string in varchar2
    ) return varchar2

  Returns the string with the CSS font settings for text in the portlet subheader.

  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.

  Example:

         l_subheadertext := 'Admin';
         l_subheadertext := wwui_api_portlet.portlet_subheadertext
           (
                 p_string => l_subheadertext
           );
           htp.p('<td>'||l_subheadertext||'</td>');

  Parameters:
    `p_string` - the string on which the CSS style is to be applied.
  Returns:
    a varchar2 with the CSS font settings for text in a portlet subheader If a 'null' string is passed, it returns the CSS class name.
  Since:
    Oracle Portal 3.0.6.6.5

### portlet_text

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

  Returns the string with the CSS font settings for text in the 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.

  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>');

  Parameters:
    `p_string` - the string on which the CSS style is to be applied
    `p_level` - the text level that indicates the size. The possible values are 1, 2, 3 and 4.
  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.
  Since:
    Oracle Portal 3.0.6.6.5

### render_portlet_bottom

    procedure render_portlet_bottom(
        p_portlet_record in wwpro_api_provider.portlet_runtime_record,
        p_title in varchar2 default null,
        p_show_details in boolean default false,
        p_show_edit in boolean default false,
        p_show_help in boolean default false,
        p_show_about in boolean default false
    )

  Draws the bottom of the portlet.

  Call this procedure to draw the bottom (or footer) of a portlet. The portlet Show method can call this procedure when the page calls portlet.show.

  Note: Use this procedure with PDK-Java (JPDK) v2 and later. It replaces the draw_portlet_header procedure used in earlier releases of Oracle Portal.

  Example:

        -- Render the bottom of the portlet (Close the portlet)
        wwui_api_portlet.render_portlet_bottom(
          p_portlet_record   => p_portlet_record, --- pass portlet record as is
          p_title            => 'My Portlet Title'   --- title of portlet
          p_show_details     => false,    --- don't display details link
          p_show_edit        => true,     --- display customize link
          p_show_help        => true,     --- display help link
          p_show_about       => true      --- display about link
        );

  Parameters:
    `p_portlet_record` - the portlet_runtime_record that was passed to the show method of the portlet
    `p_title` - the portlet title
    `p_show_details` - indicates whether the portlet displays a Details link
    `p_show_edit` - indicates whether the portlet displays a Customize link
    `p_show_help` - indicates whether the portlet displays a Help link
    `p_show_about` - indicates whether the portlet displays an About link
  Since:
    Oracle Portal 9.0.2

### render_portlet_top

    procedure render_portlet_top(
        p_portlet_record in wwpro_api_provider.portlet_runtime_record,
        p_title in varchar2 default null,
        p_show_details in boolean default false,
        p_show_edit in boolean default false,
        p_show_help in boolean default false,
        p_show_about in boolean default false,
        p_encode_urls in boolean default true,
        p_show_full_screen_decoration in boolean default true
    )

  Draws the top of the portlet.

  Call this proceure to draw the top (or header) of a portlet. The portlet Show method can call this procedure when the page calls portlet.show.

  Note: Use this procedure with PDK-Java (JPDK) v2 and later. It replaces the draw_portlet_header procedure used in earlier releases of Oracle Portal.

  Example:

        -- Render the top of the portlet (Open the portlet)
        wwui_api_portlet.render_portlet_top(
          p_portlet_record => p_portlet_record,  --- pass portlet record as is
          p_title        => 'My Portlet Title'          --- title of portlet
          p_show_details => false,           --- don't display details link
          p_show_edit    => true,            --- display customize link
          p_show_help    => true,            --- display help link
          p_show_about   => true             --- display about link
        );
        -- Render the content of your portlet (Only if portlet is not collapsed)
        if not p_portlet_record.is_collapsed then
           -- Code to print out the content of your portlet --
        end if;

  Parameters:
    `p_portlet_record` - the portlet_runtime_record that was passed to the show method of the portlet
    `p_title` - the portlet title
    `p_show_details` - indicates whether the portlet displays a Details link
    `p_show_edit` - indicates whether the portlet displays a Customize link
    `p_show_help` - indicates whether the portlet displays a Help link
    `p_show_about` - indicates whether the portlet displays an About link
    `p_encode_urls` - indicates if back_page_url and refresh_url should be url encoded before being used as a parameter in another url. The default is true, they should be encoded because they are passed unencoded. This should only be passed as false when rendering the portlet header for a page portlet where the urls are already encoded and should be used modification. Note: This field is available with Oracle Portal 10.1.4 or later.
    `p_show_full_screen_decoration` - Set to true to view the banner and smartlinks within full screen mode calls of the portlet.
  Since:
    Oracle Portal 9.0.2

Overview | Package | Object Type | Deprecated | Index | Help
| Oracle Application Server Portal PL/SQL API Reference - 10.1.4
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES
SUMMARY: EXCEPTION | TYPE | CONSTANT | VARIABLE | FUNCTION/PROCEDURE | DETAIL: EXCEPTION | TYPE | CONSTANT | VARIABLE | FUNCTION/PROCEDURE