Book a Demo

Author Topic: TaggedValue enumeration  (Read 2881 times)

The apprentice

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
TaggedValue enumeration
« on: May 25, 2018, 11:24:44 pm »
I use a taggedValue wich have several values :

How can I add a new value in the list in C#. I found no answers with the Documentation ( TaggedValue Class or attribute ).

It is possible to do that?

Pardon my english.

Thank you

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: TaggedValue enumeration
« Reply #1 on: May 26, 2018, 12:53:42 am »
Do you mean you have a tagged value like
"Gender" where you can select "Male" and "Female", and you now want to add an extra choice "X"?

If that is the case you will need to update the tagged value definition.

How to do that depends on where the tagged value has been defined.
It could be
- standalone tagged value definition in the model
- standalone tagged value definition via an MDG
- tagged value defined in a UML profile

With an add-in you can only change the definition of a standalone tagged value.

To do so you will first need to get it tagged value definition by looping EA.Repository.PropertyTypes
Once you find it you can change it's definition and update() it.

You also might need to go over all the existing tagged values to add the missing value as well (I think it's stored in the notes field)

Geert