Enumerations
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[File:Defining enumerations.png|none|thumb|685x685px]] | You edit enumerations by right-clicking on any model element in the "model content" window. | ||
[[File:Edit enumerations menu.png|none|thumb|469x469px]] | |||
The enumeration editing window[[File:Defining enumerations.png|none|thumb|685x685px]] | |||
The defined enumeration is a class in the model's typesystem. | The defined enumeration is a class in the model's typesystem. |
Revision as of 10:19, 23 March 2020
This page was created by Lars.olofsson on 2020-03-23. Last edited by Stephanie on 2025-02-11.
You edit enumerations by right-clicking on any model element in the "model content" window.
The enumeration editing window
The defined enumeration is a class in the model's typesystem.
For example, you can returning a list of the values. This return a collection of ImportColumn Tuples
ImportColumn.allInstances
Converting this to a list of strings for each Enum value (for example to be used in a list on screen)
ImportColumn.allInstances.asString
Select an enum value from the list, then getting the string value from that
ImportColumn.allInstances->select(ic|ic = #JournalName).asString
Getting the value of an Enum tuple
(#JournalName).toString
(note: asString don't work on enum tuples)