Valid Values
- Last UpdatedJan 24, 2022
- 1 minute read
The valid values for a text or word User-Defined Attributes (UDA) can be defined by creating UVALID elements below a UDA.
The attribute of a UVALID element is:
UVVAL - valid value.
If the administration requires multiple validation criteria then multiple elements must be created. The following example will create a UDA which will allow values "Warning", "Danger", or "Caution":
|
Example: |
|
|
NEW UDA /STAT UTYP TEXT |
Create a new Text UDA |
|
UDNA 'STATUS' |
|
|
ULEN 10 |
|
|
RPTX 'STATUS' |
|
|
ELE ADD EQUI STRU SUBS PIPE ZONE SITE |
|
|
NEW UVALID /WARNING |
Create a UVALID element to hold a condition |
|
UVVAL ' WARNING' |
|
|
DESC 'Condition Warning' |
|
|
/STAT |
Navigate back to UDA element |
|
NEW UVALID /DANGER |
Create a second UVALID element |
|
UVVAL 'DANGER' |
|
|
DESC 'Condition Danger' |
|
|
/STAT |
|
|
NEW UVALID /CAUTION |
Create a third UVALID element |
|
UVVAL 'CAUTION' |
|
|
DESC 'Condition Caution' |