Book a Demo

Author Topic: Multiselect label Tagged Value  (Read 3248 times)

mse

  • EA User
  • **
  • Posts: 308
  • Karma: +1/-0
    • View Profile
Multiselect label Tagged Value
« on: June 01, 2024, 01:19:22 am »
I want to create a custom tagged value where I can select several enumeration values at once. Say for example, my tagged value data type is defined as follows:

Type=Enum;
Values=SW,HW,SYS,TBD;
Default=TBD;

This works fine if all I do is select one from the list. What if I want several at once? Suppose I have a requirement, I want to label as SW and SYS (like Requirement A in the list below):

RequirementA
SW,SYS

RequirementB
SW

RequirementC
HW

HOw do I define a tagged value that accepts multiple selections? A Checklist type seems to be for a different purpose.

It seems that this has not been adequately so far, but perhaps there has been an update? https://sparxsystems.com/forums/smf/index.php?topic=40305.0
« Last Edit: June 01, 2024, 01:26:14 am by mse »

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1403
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Multiselect label Tagged Value
« Reply #1 on: June 04, 2024, 09:03:37 pm »
Such type doesn't exist in EA e.g. EnumList.
The only workaround I can think of is to use a RefGuidList and create stereotyped elements (using a custom stereotype) for each value.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Multiselect label Tagged Value
« Reply #2 on: June 04, 2024, 09:17:05 pm »
We use Checklist for that purpose.

The annoying thing is that it's not really easy to get the info out.
The SQL gets a bit complex. There must be some topics here on the forum where I shared the SQL code to get info from checklist tagged values.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Multiselect label Tagged Value
« Reply #3 on: June 05, 2024, 08:29:56 am »
The suggestion that I make every time someone wants multiple values of a given type is to create multiple tagged values, for the same property.

So just make an enumeration tag for your stereotype, then on the instance add the additional values.