Book a Demo

Author Topic: Multiselect Tag Value  (Read 8770 times)

etaha

  • EA User
  • **
  • Posts: 47
  • Karma: +1/-1
    • View Profile
Multiselect Tag Value
« on: August 06, 2018, 09:30:22 pm »
Hi,
Would it be possible to add tag value with multi-select options. Same as Checklist tag value type but the value should be the selected options not only (Incomplete/Complete).
E.g.
Environments
options: Env1, Env2, Env3

User could select 1 or more environments in this tag value.

Thanks in Advance.

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 Tag Value
« Reply #1 on: August 06, 2018, 09:53:46 pm »
Do you mean the enum type?

Geert

etaha

  • EA User
  • **
  • Posts: 47
  • Karma: +1/-1
    • View Profile
Re: Multiselect Tag Value
« Reply #2 on: August 06, 2018, 10:02:07 pm »
Enum has limitation that only single value can be selected.
Is there a way to allow user to select multiple values in Enum tag value type?

There are some cases where this is required, for example:
Test Environment
Options: Development, Testing, Staging, Production
User may select one or more environments in this tag value.
If user selects "Development" and "Testing", I need EA to show in tag value "Development, Testing"
Thanks in Advance.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Multiselect Tag Value
« Reply #3 on: August 07, 2018, 12:29:51 am »
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: Multiselect Tag Value
« Reply #4 on: August 07, 2018, 04:26:01 pm »
Hi,

E.g.
Environments
options: Env1, Env2, Env3

As an alternate
If these environments are created as an object in EA then you can use refguidlist type from the predefined types.

Code: [Select]
Type=RefGUID;
Values=Type1,Type2; [b]//Type of environment object[/b]
Stereotypes=Stereotype1;
//stereotype of environment object


etaha

  • EA User
  • **
  • Posts: 47
  • Karma: +1/-1
    • View Profile
Re: Multiselect Tag Value
« Reply #5 on: August 07, 2018, 06:38:25 pm »
Thanks all for your replies.

The checklist option is somehow near to what I'm looking for, however when user selects Env1, Env2 for example, EA shows the value of the tag as "Incomplete" and if all values are checked it displays "Complete".
What I need is when user selects subset of allowed values, EA has to display this subset as comma separated (Env1, Env2) instead of "Incomplete". Is there a workaround to do this?
 Thanks

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 Tag Value
« Reply #6 on: August 07, 2018, 06:49:32 pm »
I think EA has the actual selected values stored, it just doesn't display them like you would like to.

The workaround I can think of is to create an enum with all possible combinations.
Doable if there aren't too many options, but starts getting hard real soon as the amount of options go up.

Geert

etaha

  • EA User
  • **
  • Posts: 47
  • Karma: +1/-1
    • View Profile
Re: Multiselect Tag Value
« Reply #7 on: August 07, 2018, 06:54:52 pm »
Great idea! Thanks a lot Geert.
Thanks all for your support.

etaha

  • EA User
  • **
  • Posts: 47
  • Karma: +1/-1
    • View Profile
Re: Multiselect Tag Value
« Reply #8 on: August 07, 2018, 07:08:15 pm »
It works good but by using shortcuts for the values (STG instead of Staging etc...) and that's fine.
Best Regards