45.49 PRINT_READ_ONLY Procedure Signature 1

This procedure outputs a read-only text field or textarea. Use when displaying a single value.

Syntax

APEX_PLUGIN_UTIL.PRINT_READ_ONLY (
    p_item                  IN apex_plugin_api.t_item,
    p_param                 IN apex_plugin_api.t_item_render_param,
    p_value                 IN apex_session_state_api.t_value
                                      DEFAULT apex_session_state_api.t_value(),
    p_display_value         IN VARCHAR2         DEFAULT c_ignore_display_value,
    p_width                 IN PLS_INTEGER                        DEFAULT NULL,
    p_height                IN PLS_INTEGER                        DEFAULT NULL,
    p_css_classes           IN VARCHAR2                           DEFAULT NULL,
    p_protected             IN BOOLEAN                            DEFAULT TRUE,
    p_escape                IN BOOLEAN                            DEFAULT TRUE )

Parameters

Parameter Description
p_item The item's p_item variable.
p_param The item's p_param variable.
p_value (Optional) The unescaped value (API always escapes it). If not passed, defaults to p_param.session_state_value.
p_display_value (Optional) Used as the display value. If not passed, defaults to c_ignore_display_value and is ignored.
p_width (Optional) The width of the item. If not passed, uses p_item.element_width.
p_height (Optional) The height of the item. If not passed, uses p_item.element_height. If height is greater than 1, API renders a textarea instead of a text field.
p_css_classes (Optional) Additional CSS classes to be added to the text field or textarea.
p_protected Add checksum for the value. Default TRUE.
p_escape Controls escaping of p_display_value (p_value is always escaped). Default TRUE.

Example

apex_plugin_util.print_read_only (
    p_item          => p_item,
    p_param         => p_param,
    p_display_value => l_display_value,
    p_css_classes   => 'my-readonly-custom-item' );