Try OpenEdge Now
skip to main content
Developing BPM Applications with Developer Studio
Using dataslots : Creating user-defined dataslots : Defining the dataslot format : Specifying validation at the dataslot level
 
Specifying validation at the dataslot level
Progress Developer Studio for OpenEdge provides a validation framework that enables you to specify validation at the dataslot level. You can now associate validation rules with a CHARACTER, a LONGCHAR, an INTEGER, an INT64, or a DATETIMETZ dataslot type.
Table 45 lists and describes the dataslot validation rules and the dataslot types for which they are available.
Table 45. Validation Rules for User-Defined Dataslots
Name
Description
Length
Available only for CHARACTER and LONGCHAR dataslots. Enter a Minimum Length and a Maximum Length for the string text.
Number validation
Available for CHARACTER, LONGCHAR and INTEGER dataslots. Select the Number type (Integer or Float) and enter the minimum value and the maximum value in the respective text boxes.
Decimal validation
Available for CHARACTER, LONGCHAR, DECIMAL, and Number dataslots. Enter the number of digits to the left and to the right of the decimal point in the respective text boxes.
Decimal validation (advanced)
Available for CHARACTER, LONGCHAR, DECIMAL, and Number dataslots. In addition to the Decimal validation rule, this rule enables you to set a range of digits allowed to the left and to the right of the decimal point.
IP Address
Available only for CHARACTER and LONGCHAR dataslots. Define the Minimum Port Allowed or the Maximum Port Allowed. Default values are 0 for Minimum and 65535 for Maximum.
U.S. Social Security Number
Available only for CHARACTER and LONGCHAR dataslots. The predefined format (at runtime) is xxx-xx-xxxx.
Email Address
Available only for CHARACTER and LONGCHAR dataslots. The format is predefined.
URL
Available only for CHARACTER and LONGCHAR dataslots. Select any of the allowed protocols (http, https, ftp, or all) and whether the Query strings are allowed.
Date Validation
Available only for DATETIMETZ dataslots. The format is predefined.
To assign a validation rule to a dataslot:
1. Select the CHARACTER, LONGCHAR, INTEGER, INT64, or DATETIMETZ dataslot in the All Dataslots section.
2. From the Default Format section, click Browse beside the Validation box.
The Validation dialog box appears.
3. Select any of the available rules from the Validation Rule drop-down list. Depending on the validation rule you selected, you may have to enter additional information, as described in Table 45.
4. Click OK to save the changes you made to the dataslot properties.
Note: Validation rules associated with a dataslot are only applicable when you use the dataslot in a workstep with auto-generated HTML presentation. For more information, see Defining Auto-generated HTML presentations.