7 Replies Latest reply on May 10, 2012 8:54 PM by Bob37

    Change color of inline error message

    RichieB
      I am using version 4.1.0.00.32

      I have a button that calls a process which submits a stored procedure. If the sp errors, i see them in the top of the page but they are much too friendly and do not jump out at the user. Is there a simple way to turn that red or popup an error message without sending to a new page? I understand there is better error handling available but looking for a simple quick solution.

      Thanks,
      Richie
        • 1. Re: Change color of inline error message
          VC
          Edit your page template and Identify the class that is being used for Error/notification and add your own class.

          http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/ui_templt.htm#BABGJFEI

          Thanks
          • 5. Re: Change color of inline error message
            RichieB
            ERROR:
            <div id="t20Messages"><table summary="" border="0" cellpadding="0" cellspacing="0" id="t20Notification">
            <tr>
            <td valign="top"><img src="/i/themes/theme_20/msgBoxTop-L.gif" alt="" /></td>
            <td class="tM"></td>
            <td valign="top"><img src="/i/themes/theme_20/msgBoxTop-R.gif" alt="" /></td>
            </tr>
            <tr><td class="L"></td><td width="100%"><img src="/i/delete.gif" onclick="$x_Remove('t20Notification')" style="float:right;" class="pb" alt="" />1 error has occurred<ul class="htmldbUlErr"><li>ORA-20000: Ticket Number is not 0.</li></ul></td><td class="R"></td></tr>


            PAGE TEMPLATE BODY:


            <div id="t20PageHeader">
            <table border="0" cellpadding="0" cellspacing="0" summary="">
            <tr>
            <td id="t20Logo" valign="top">#LOGO#
            #REGION_POSITION_06#</td>
            <td id="t20HeaderMiddle" valign="top" width="100%">#REGION_POSITION_07#
            </td>
            <td id="t20NavBar" valign="top">#NAVIGATION_BAR#
            #REGION_POSITION_08#</td>
            </tr>
            </table>
            <div id="t20Tabs" class="tablight">#TAB_CELLS#</div>
            </div>
            <div id="t20BreadCrumbsLeft">#REGION_POSITION_01#</div>
            <table border="0" cellpadding="0" cellspacing="0" summary="" id="t20PageBody" width="100%" height="70%">
            <td width="100%" valign="top" id="t20ContentBody">
            <div id="t20Messages">#GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>
            <div id="t20ContentMiddle">#BOX_BODY##REGION_POSITION_02##REGION_POSITION_04#</div>
            </td>
            <td valign="top" width="200" id="t20ContentRight">#REGION_POSITION_03#
            </td>
            </tr>
            </table>

            Edited by: RichieB on May 10, 2012 11:28 AM
            • 6. Re: Change color of inline error message
              RichieB
              can you look at my post and see if you have any thoughts? I can't seem to send you the HTML, it's getting lost for some reason.
              • 7. Re: Change color of inline error message
                Bob37
                RichieB wrote:
                can you look at my post and see if you have any thoughts? I can't seem to send you the HTML, it's getting lost for some reason.
                Just put { code } tags above and below what you don't want the forum to fold, spindle, and mutilate. Remove the spaces between code and the braces

                Sample
                        preserved code, html, etc