2 Replies Latest reply on Feb 22, 2013 9:01 AM by luno

    Usage of placeholders in apex_error

    luno
      Hi everyone,

      I am using APEX 4.1.
      Using the documentation ([http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_error.htm#CABGDEDC]) I'm trying to implement my own custom error message.
      My problem: The placeholders in the text message are not replaced and I don't know what I'm doing wrong.

      Example:
      APEX_ERROR.ADD_ERROR (
           p_error_code => 'This is a text message with one placeholder: %0',
           p0 => my_variable,
           p_display_location => apex_error.c_inline_with_field_and_notif,
           p_page_item_name => 'P13_MY_PAGE_ITEM'
      );
      The result is an error message as follows:
      This is a text message with one placeholder: %0 (Go to error)
      Any suggestions?

      Thanks in advance.

      Regards,
      luno