-
Notifications
You must be signed in to change notification settings - Fork 39
Enumeration EnumVal
Jakob Vogelsang edited this page Sep 17, 2021
·
2 revisions
Add EnumVal
You can use OpenSCD to add new EnumVal
s to an existing EnumType
.
- Navigate to the
EnumType
you want to add aEnumVal
to open the Edit EnumType wizard. - Click on ENUM VALUE button in the middle of the wizard.
Settings:
-
ord*: Must be unique within the
EnumType
. - desc: user-defined description field
- value*: The enumeration value as string.
Edit EnumVal
You can edit existing EnumVal
element to for example fix issues.
- Navigate to the
EnumType
that contains theEnumVal
you want to edit - Open the Edit EnumType page and click on the
EnumVal
you want to edit the Edit Enum wizard.
Settings:
-
ord*: Must be unique within the
EnumType
. - desc: user-defined description field
- value*: The enumeration value as string.
Example:
<EnumVal ord="1">on</EnumVal>
Remove EnumVal
Removing EnumVal
from EnumType
might be necessary from time to time to adapt to the definition to vendor specific data model. Es an exampled you can often see that BehaviorModeKind
to consist of on, test and off only. (test/blocked and on-blocked are removed)
- Open the
EnumVal
you want to remove in Edit EnumVal wizard - Click on Remove