Book a Demo

Author Topic: Add TaggedValue by Shortcut overrides existing one  (Read 5780 times)

MircoGabriel

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Add TaggedValue by Shortcut overrides existing one
« on: September 18, 2020, 10:31:04 pm »
Hello,
today I found a strange behavior when creating TaggedValue.

When I create TaggedValue with the same name, then normally they are displayed and added. But when I use the shortcut Crtl+Shift+T, the last TV (with the same name) is overwritten. If I use the buttons or create the TV in the Element Properties, the same TV is added.

Is this a hidden setting? I've been working with EA for several years and it hasn't been like this until now. I had to reinstall EA, maybe I missed something?

EA v15.1

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add TaggedValue by Shortcut overrides existing one
« Reply #1 on: September 18, 2020, 11:11:09 pm »
The only related setting I know of would be the "show duplicate tags" setting.

Geert

MircoGabriel

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Add TaggedValue by Shortcut overrides existing one
« Reply #2 on: September 21, 2020, 02:28:01 pm »
The only related setting I know of would be the "show duplicate tags" setting.

Geert

Hey, yes this setting is well known, but makes no different unfortunately. :-\

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Add TaggedValue by Shortcut overrides existing one
« Reply #3 on: September 21, 2020, 04:30:59 pm »
Hello Gabriel,


I can confirm this behaviour in 15.1.1528.

I think it doesn't overwrite the most recent existing tagged value but the first one in the list. Here's what I did:
  • Created a diagram and a class.
  • Using the properties window (not dialog), created an on-the-fly (not predefined) tagged value "tv" with value "val1".
    It appeared in the properties window as expected.
  • Using the properties window, created an on-the-fly tagged value "tv" with value "val2".
    The properties window now showed two tagged values "tv", the first with value "val1" and the second with value "val2".
  • Using Ctrl-Shift-T, created an on-the-fly tagged value "tv" with value "val3".
    The properties window did not change.
  • In the diagram, deselected and reselected the class.
    The properties window now showed two tagged values "tv", the first with value "val3" and the second with value "val2".
  • Using Ctrl-Shift-T, created an on-the-fly tagged value "tv" with value "val4".
    The properties window did not change.
  • In the diagram, deselected and reselected the class.
    The properties window now showed two tagged values "tv", the first with value "val4" and the second with value "val2".
  • Checked the database for tagged values. There were only two named "tv".

So this is definitely a bug, and you should report it using the link provided.


/Uffe
My theories are always correct, just apply them to the right reality.

MircoGabriel

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Add TaggedValue by Shortcut overrides existing one
« Reply #4 on: September 21, 2020, 04:41:17 pm »
Yes. that is exactly the behaviour I mentioned.
Good to know, that this i probably a bug. I will report this, thanks.

I downgraded my Version to EA14 for the Moment.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add TaggedValue by Shortcut overrides existing one
« Reply #5 on: September 21, 2020, 04:49:47 pm »
There's actually a pretty good chance this change in behavior was intentional.
In 99% of the cases there is only one tagged value with a given name for an element.
In those cases it makes sense that the Ctrl-Shift-T overrides that tagged value if it already exists.

As this is an improved for most users in most situations, I'm afraid those of use using multiple tagged values with the same name, are out of luck (when it comes to adding those tagged values with Ctrl-Shift-T)

Geert

PS. as a workaround you could write a little script that adds the tagged values for you the same way Ctrl-Shift-T would.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Add TaggedValue by Shortcut overrides existing one
« Reply #6 on: September 21, 2020, 07:06:45 pm »
No, having the behavior be different depending on the way you invoke the "Tagged Value" dialog (ie create a tagged value) makes no sense. It's the same dialog in either case, so the reasonable expectation is that it does the same thing when you click OK regardless of what you did to open it.

I don't believe the intent is to remove support for multiple same-named tagged values, but if it is then there are several other changes that need to be made.

As to workaround, you don't need to script it, just add the duplicate tagged value using the properties window, or the properties dialog, where the "Tagged Value" dialog also creates a new tagged value regardless of whether one of the same name already exists. It's only Ctrl-Shift-T that behaves differently.

/U
My theories are always correct, just apply them to the right reality.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add TaggedValue by Shortcut overrides existing one
« Reply #7 on: September 21, 2020, 07:18:01 pm »
As to workaround, you don't need to script it, just add the duplicate tagged value using the properties window, or the properties dialog, where the "Tagged Value" dialog also creates a new tagged value regardless of whether one of the same name already exists. It's only Ctrl-Shift-T that behaves differently.

/U
The thing is that you can use Ctrl-Shift-T on a selection of elements (that's the only reason I would use Ctrl-Shift-T) and via the properties window it's one by one.
In the cases were you would want to add the same tagged value to a bunch of elements, a script would be more efficient.

Geert

MircoGabriel

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Add TaggedValue by Shortcut overrides existing one
« Reply #8 on: March 18, 2021, 11:29:58 pm »
This one i got few days ago:

"Hello Mirco,
Thanks for the email.
We have confirmed that this is an issue and it should be fixed in a future release of EA.
Issue ID: 20106100"

Just for your Information

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add TaggedValue by Shortcut overrides existing one
« Reply #9 on: March 19, 2021, 12:24:16 am »
Please note the "a future version" might well come out after you already passed away...

q.