This column in the TraitSubSystem table stores validation rule of a trait for a
Sub-system ie a trait can have different
validation rule for different
Sub-system.
For trait with
string data type, the validation
rule must be
regular expression
where as for the trait with
numeric data type,
validation rule a range can be generated in the
Trait Validation Rule Setup Form.
Important Note: If there is not
any validation rule of the trait then this column and Validation Rule Error
Message can have empty (blank)
for a Sub-system so that the trait can be used with that Sub-system.
All the traits can have missing value as defined in the
.config file. Default missing value is "NA" which can be changed in the .config
file as required.
Examples:
|
Trait Name |
Validation Rule |
Validation Error Message |
|
LeafColor |
^(GREEN|YELLOW|LIGHT GREEN)$ |
Invalid Leaf Column. Please enter GREEN, YELLOW or LIGHT GREEN |
|
GrainYield |
(TraitValue >= 10.0 And TraitValue <= 125.0) |
A value between 10 and 125 was expected |
This column stores the message that will be displayed to the user in case the entered
value of the trait can not be validated by the
Validation
Rule of the Sub-system.