Configuring Siebel Business Applications > Configuring Siebel Web Templates and Siebel Tags > Configuring Siebel Web Templates and Siebel Tags >

Configuring How Siebel CRM Displays an Error That Occurs on the Siebel Server


If an error occurs on the Siebel Server when Siebel CRM submits a form, then the Siebel Web Engine displays the same page again and includes an error message. The <div od-type="error"> tag specifies the location of this error message. If an error occurs outside of a form submission, then the Siebel Web Engine continues to use the value that is defined in the Error Web Page property of the application object.

You can use the <div od-type="error"> tag to configure how Siebel CRM displays an error that occurs on the Siebel Server. Note the following behavior:

  • If Siebel CRM encounters no errors when it displays a form, then it skips the contents of the <div od-type="error"> tag.
  • The only attribute of the <div od-type="error"> tag is a property whose value must equal FormattedHtml. This configuration configures Siebel CRM to display the contents of the error message.
  • If you do not use a <div od-type="error"> tag in a Siebel web template, then the code creates an error node, which is an instance of the CSSSWEErrorSWX code. Siebel CRM inserts this error node as the first child of the enclosing page or form node.
  • Siebel CRM displays an error message in plain text. It displays each error message in a separate paragraph.
  • The enclosing HTML tags determine the font and style of the error message. If the font uses the same color as the background, then the error message is not visible.

To configure how Siebel CRM displays an error that occurs on the Siebel Server

  1. To display the error message in a form, place the following tags in the <div od-type="form"> tag:

    <div od-type="error">

    <div od-property="FormattedHtml"/>

    <!--od section error close->

    </div>

  2. Make sure you use this tag in all <div od-type="form"> tags.

Format of the OD Error Tag

The basic format of the <div od-type="error"> tag is as follows:

<div od-type="error">

The format of the <div od-type="error"> tag with the FormattedHtml property is as follows:

<div od-type="error" property="FormattedHtml"/>

or

<div od-type="error">

<div od-property="FormattedHtml"/>

<!--od section error close->

</div>

Example of Using the Error Tag

The following code is an example of using the <div od-type="error"> tag:

<div od-type="form">

<div od-type="error">

<b><font color="red"> <div od-property="FormattedHtml"/> </font></b>

<!--od section error close->

</div>

...

<!--od section form close->

</div>

For another example, see Example Code of a Nongrid Form Applet Template.

Usage of the SWEErrMsg Item

You must use the <div od-type="error"> tag instead of the <div od-type="pageitem"> tag that is mapped to the _SWEErrMsg item in the Error Web Page property of the Siebel application. Siebel CRM version 7.0 and higher does not support _SWEErrMsg.

Configuring Siebel Business Applications Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.