Validating Data That the User Enters in a Business Component Field

You can configure Siebel CRM to validate the information that the user enters into a field. You can configure the error message that Siebel CRM displays if the user enters information that does not meet the validation expression.

To validate data that the user enters in a business component field

  1. Make sure Siebel Tools is configured to allow you to modify a text string.

    For more information, see Setting Up the Configuration File for Siebel Tools.

  2. Create the symbolic strings that Siebel CRM displays in the error message.

  3. In the Object Explorer, click Business Component.

  4. In the Business Components list, locate the business component that contains the field that Siebel CRM must validate.

  5. In the Object Explorer, click Field.

  6. In the Fields list, locate the field that Siebel CRM must validate.

  7. In the Validation property, enter an expression that does the validation.

    You can use the Expression Builder to build the expression. To display the Expression Builder, click the ellipsis (...) in the Validation property.

  8. In the Validation Error Message - String Reference property, enter the name of the symbolic string you created in step 2 for this error message.

    As an alternative, you can use the Validation Message property to enter the error message without using a symbolic string. You can use the Validation Message - String Override property to override the error message.

  9. In the Message Display Mode property, choose one of the following display modes for the error message:

    • User Msg. Displays only the error message that you provide.

    • User Msg with Error Code Only. Displays the error message that you provide and the system error code.

    • User Msg with Error Code/Msg. Displays the error message that you provide, the system error code, and the system error message.

  10. Compile and test your modifications.

    For more information, see Using Siebel Tools.