37.40 PRINT_DISPLAY_ONLY Procedure Signature 2

This procedure outputs a SPAN tag for a display-only field.

Syntax

APEX_PLUGIN_UTIL.PRINT_DISPLAY_ONLY (
    p_item             IN apex_plugin_util.t_item,
    p_display_value    IN apex_session_state.t_value,
    p_show_line_breaks IN BOOLEAN,
    p_escape           IN BOOLEAN  DEFAULT NULL,
    p_id_postfix       IN VARCHAR2 DEFAULT '_DISPLAY',
    p_show_icon        IN BOOLEAN  DEFAULT TRUE );

Parameters

Table 37-60 PRINT_DISPLAY_ONLY Parameter

Parameter Description
p_item The p_item record to be passed in.
p_display_value Text to be displayed. p_param.session_state_value should be passed in.
p_show_line_breaks If set to TRUE line breaks in p_display_value are changed to <br /> so that the browser renders them as line breaks.
p_escape Whether to escape the value. If p_escape is unspecified, the value from p_item is used.
p_id_postfix Postfix which is getting added to the value in p_item.name to get the ID for the SPAN tag. Default is _DISPLAY.
p_show_icon Whether to render the item icon. Default is TRUE.

Example

The following example could be used in an item type plug-in to render a display-only page item.

apex_plugin_util.print_display_only (
    p_item          => p_item,
    p_display_value => p_param.session_state_value );