Book a Demo

Author Topic: Unsetting an enumerated tagged value  (Read 5585 times)

kjourdan

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Unsetting an enumerated tagged value
« 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.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Unsetting an enumerated tagged value
« Reply #1 on: June 01, 2016, 10:19:22 pm »
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.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Unsetting an enumerated tagged value
« Reply #2 on: June 02, 2016, 12:16:51 am »
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
My theories are always correct, just apply them to the right reality.

kjourdan

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Unsetting an enumerated tagged value
« Reply #3 on: June 02, 2016, 12:35:27 am »
Thanks Uffe and Qwerty. I will add a NotDefined enumeration and update my scripts to remove the value when it encounters this enumeration.