Type validation

Checks for correctness Based on the data types, i.e. no text in numeric values, permitted date formats, etc.

This validation type is performed on Web applications in the Web browser and on the Web server.

Error texts come from the runtime and are language-specific.

AcceptedValues

Expressions can be used to define a permissible value range.

Examples:

  • 5;6;12;20…30
  • yes;no;yes;no
  • 1 … (DV11.F6000971-0.1)
  • Y;N;U
  • >=DV11.F6000977
  • <= Time.GetTimePart(Time.TimeUnit.Year, Time.GetNowDate()) && > 1900

For web applications, this validation type is run only on the web server.

The error text comes from the runtime and is language-specific, but can also be adapted using the InvalidValueMessage property (is currently not language-specific).

AcceptedValues with Regular Expressions

Regular Expressions can now also be used for AcceptedValues. To distinguish them from the syntax of the Scopeland Expressions, they must be embedded in slashes (according to Javascript) : /pattern/

This type of validation is performed on web applications in the web browser and on the web server.

Example:

  • /[0-5]*/ Any number of 0-5 values

AcceptedValues with logical expression

In addition to the previous variant in which comparisons are made with the value of the field, any logical expressions can be specified in this variant.

Examples:

  • Time.Diff(Time.TimeUnit.Day, DV1.F6000319.T6000023.F6000359, DV1.F6000323) <= 180
  • Applet.CheckEMailValue( Field.Value() )


validation process

  • Checking takes place when values are changed by input controls, when using set functions and when saving.

Visualization of errors

  • For web applications, a red frame and an error text as tooltip
  • For desktop applications, a red frame and error text is displayed below the control.
  • Error text is also written to error logging.