Siebel Developer's Reference > Siebel Web Engine Tags > Program Logic Tags >

Error Tag


The error tag displays an error message. If an error occurs on the Siebel Server when Siebel CRM:

  • Submits a form. SWE displays the same page again and it includes the error message.
  • Does not submit a form. SWE continues to use the application error page.

You can use one of the following formats:

  • Format one:

    swe:error

  • Format two:

    <swe:error property="FormattedHtml" />

  • Format three:

    <swe:error>
    <swe:this property="FormattedHtml" />
    <swe:error/>

For example:

<swe:form>
<swe:error>
<b> <font color="red"> <swe:this property="FormattedHtml"/> </font> </b>
</swe:error>
.....
</swe:form>

Note the following:

  • You can use the error tag in any form tag.
  • If you do not use an error tag in a Siebel Web template file, then the code creates a CSSSWEErrorSWX instance as an error node. It inserts this error node as the first child of the enclosing page or form node.
  • If no errors exist when SWE displays a form, then it ignores the contents of the error tag.
  • SWE displays the error message in plain text in a new paragraph. If the error message font uses the same color as the background, then it is not visible. You can use the enclosing HTML tags to modify the font and style that Siebel CRM uses for the error message.
  • You can use the error tag in a form tag in an applet template only if Siebel CRM uses standard interactivity. Siebel CRM uses a dialog box to display an error in high interactivity mode.
  • You must use the error tag instead of using the pageitem tag mapped to the _SWEErrMsg item in the application error page. Siebel CRM does not support the _SWEErrMsg item. For more information, see Web Page Item Tag.
Siebel Developer's Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.