Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: kjourdan on June 01, 2016, 09:34:43 pm
-
Hi all,
I have created a stereotype that has an enumerated tagged value with no default. After selecting a tagged value, is there a way to unset that value? For strings, references, etc, the value can be unset be either deleting the entry or selecting none on a reference type tag. I would like to be able to revert back to an unset state for the enumerated tagged value in some cases.
Thanks.
-
Has been asked several times IIRC. The way to do is to introduce an explicit Undefined entry (or whatever you call it). The recent discussion circled around "is a none-value a value?".
q.
-
Hello,
The GUI doesn't allow you to select an empty value in an enum-style tagged value, but since the actual stored value is just a string you could always write a little script that sets the value to an empty string.
/Uffe
-
Thanks Uffe and Qwerty. I will add a NotDefined enumeration and update my scripts to remove the value when it encounters this enumeration.