Book a Demo

Author Topic: Multiple Select Tagged Value  (Read 5523 times)

skelesp

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Multiple Select Tagged Value
« on: April 05, 2013, 10:40:23 pm »
Hi

Is it possible to create a tagged value which shows a list in which multiple selections can be made? For example: an element has a tagged value “stakeholders” which show a list of stakeholders and the user can select 3 stakeholders for this element. Those 3 stakeholders are saved in 1 tagged value (as a comma separated list for example).

Thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Multiple Select Tagged Value
« Reply #1 on: April 05, 2013, 11:29:56 pm »
A multi select drop down is not possible, but something similar. See RefGUID in the "Predefined Structured Typed" of the tagged values help. (Help -> Index -> Tagged Values -> Types) (why can't one copy an URI inside the help???)

q.

skelesp

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Multiple Select Tagged Value
« Reply #2 on: April 06, 2013, 12:53:37 am »
Thanks for the quick answer!

I've created a new Tagged Value with details:
Type=RefGUIDList;
Values=Lane;
Stereotypes=Lane;

Should it now be possible for me to select multiple Lanes for one tagged value?? I don't see how it should work, so could you please help me with an example?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Multiple Select Tagged Value
« Reply #3 on: April 06, 2013, 02:46:34 am »
The Values specify which EA elements you can choose. Lane is noting valid. To get you started:
- change Lane to Class
- create an arbitrary package
- add 2 or three classes stereotyped as Lane
- add that tagged value somewhere
- click the ellipsis button
- navigate to the package with the stereotyped classes and select one
- repeat the last two steps

The above works for other EA elements you might specify in Values and add in the package.

q.
« Last Edit: April 06, 2013, 02:48:41 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Multiple Select Tagged Value
« Reply #4 on: April 08, 2013, 05:58:31 pm »
Multiple select in tagged values is a bit useless in practice.

You have to CTRL-select the elements, and if you click on an element without the CTRL then you loose the previous selections.

I've decided to use multiple tagged values with a single RefGUID in stead (although that is not UML compliant).
There is a setting that you have to turn on to be able to see the multiple tagged values with the same name.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Multiple Select Tagged Value
« Reply #5 on: April 09, 2013, 09:42:04 am »
Quote
multiple tagged values with a single RefGUID in stead (although that is not UML compliant).
As far as UML is concerned it's probably actually better. You have a property with a multiplicity greater than 1. You then have multiple slots holding a single reference.

EA implements a list of guids because in some circumstances that's easier to deal with, but it is just a different way to represent the same thing.