Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Stenvang on March 05, 2015, 10:46:49 pm

Title: Deleted taggedvalue is still available in the API
Post by: Stenvang 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?
Title: Re: Deleted taggedvalue is still available in the
Post by: Geert Bellekens on March 05, 2015, 11:12:27 pm
Check the "show duplicate tags" flag under the "settings" button above the tagged values.

Geert
Title: Re: Deleted taggedvalue is still available in the
Post by: Stenvang on March 05, 2015, 11:28:40 pm
Doh!

I guess I will just delete this topic..
Title: Re: Deleted taggedvalue is still available in the
Post by: Geert Bellekens 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