Show TOC

Procedure documentationCreating Format Validation for Target Nodes Locate this document in the navigation structure

 

You can create the validation rules by creating the following runtime validation parameters for target nodes:

  • Length

  • Occurrence Number

  • Valid Value

  • Data Range

  • Customize

Note Note

Except for the customize type, you can create only one validation parameter for each parameter type.

End of the note.

At runtime, the validation rules check the relevant values retrieved from SAP Business One. You can provide a warning or error message for any error that may occur during runtime validation:

  • Error message: If any error occurs, the message appears and the validation process fails.

  • Warning message: If any error occurs, the message appears but the validation process continues.

A default error message is provided. You can modify the error message or change it to a warning message. You can use functions to compose the messages.

Procedure

  1. Select a node in the target format tree.

  2. Select the Validation tab.

  3. To add a validation parameter, click , select a validation parameter type, and specify the details.

Creating Length Validation
  1. Specify the length range.

    • If you leave the From field empty, it means that the value in the From field is zero.

    • If you leave the To field empty, it means that the value in the To field is infinity.

  2. Create an error message or a warning message, or modify the default message, if the runtime validation for length fails.

Creating Valid Values Validation
  1. Specify a valid value.

  2. To add to the valid value list, choose .

    To remove a value from the valid list, select the value and choose .

  3. Create an error message or a warning message, or modify the default message, if the runtime validation for valid values fails.

Creating Data Range Validation
  1. Specify the data range.

    To include the exact value you specify in the Data Range field, select the Inclusive checkbox.

  2. Create an error message or a warning message, or modify the default message, if the runtime validation for data range fails.

Creating Occurrence Number Validation
  1. Specify the occurrence number for the target node.

    If you leave the From field empty, it means that the value in the From field is zero. If you leave the To field empty, it means that the value in the To field is infinity.

  2. Create an error message or a warning message, or modify the default message, if the runtime validation for occurrence number fails.

Creating Customizing Validation

You can create multiple customizing validations.

  1. Create a customized expression to validate the target node at runtime.

  2. Create an error message or a warning message, or modify the default message, if the runtime customized validation fails.

More Information

Functions