Author Topic: Deleted taggedvalue is still available in the API  (Read 3565 times)

Stenvang

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Deleted taggedvalue is still available in the API
« on: March 05, 2015, 10:46:49 pm »
A deleted taggedvalue was still available/visible in the API but not in EA.

I got an element with the following taggedvalues (from properties in EA):
Name: Something::SomeTaggedValue1 ; Value: 1;
Name: Something::SomeTaggedValue 2; Value: 2;

I created this little test method see below and got the following result from the same element:
Name: Something::SomeTaggedValue1 ; Value: 1;
Name: Something::SomeTaggedValue2; Value: 2;
Name: Something::SomeTaggedValue1; Value: ;
Name: Something::SomeTaggedValue1; Value: ;

        public void showTaggedValuesOfElement(Repository repository)
        {
            string message = "";

            Object item;
            ObjectType ot = repository.GetTreeSelectedItem(out item);

            if (ot == ObjectType.otElement)
            {
                Element elm = (EA.Element)item;
                foreach (TaggedValue tv in elm.TaggedValues)
                {
                    message += "Name: " + tv.Name + ", Value: " + tv.Value + "\r\n";
                }
            }

            MessageBox.Show(message);
        }

So I guess that the two extra taggedvalues must have been deleted earlier.
Does any of you know anything about this?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Deleted taggedvalue is still available in the
« Reply #1 on: March 05, 2015, 11:12:27 pm »
Check the "show duplicate tags" flag under the "settings" button above the tagged values.

Geert

Stenvang

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Re: Deleted taggedvalue is still available in the
« Reply #2 on: March 05, 2015, 11:28:40 pm »
Doh!

I guess I will just delete this topic..

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Deleted taggedvalue is still available in the
« Reply #3 on: March 05, 2015, 11:46:23 pm »
Quote
Doh!

I guess I will just delete this topic..

No leave it up here. There will be others that might get fooled by EA this way.  :D

Geert