Book a Demo

Author Topic: Enumeration Set - Tagged Value Type  (Read 6517 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Enumeration Set - Tagged Value Type
« on: April 14, 2016, 05:21:27 pm »
We have a need to create a tagged value that is an Enumeration Set, sort of like a union of Enumeration and Check List types.

I couldn't find any safe way to do this.  Is this correct?

The only thing I could use is a comma separated string Tagged Value.

We need to be able to search the values so that we can if required search for more than one enumeration literal at a time.  (in the example of the string there would be multiple "contains" predicates).

There will be between 10 and 20 (or so) values so some other solutions aren't viable.

Anyone got any ideas?

Is the concept of such as tagged value type  be a good feature request?
« Last Edit: April 15, 2016, 09:30:28 am by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Enumeration Set - Tagged Value Type
« Reply #1 on: April 14, 2016, 07:07:49 pm »
I guess this has beed asked for already in the past. Still a good thing, though.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Enumeration Set - Tagged Value Type
« Reply #2 on: April 15, 2016, 09:59:31 am »
Feature request submitted...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

serodya

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Enumeration Set - Tagged Value Type
« Reply #3 on: April 16, 2016, 12:18:15 am »
Not sure if this can help you

Tagged Value Type = Spin

Type=Spin;
LowerBound=x;
UpperBound=y;
Default=Val;

Enables creation of a spin control with the value of LowerBound being the lowest value and UpperBound being the highest value. You can also set a default within that range.

Reference: "4 Tagged Value Types" page 81 in http://www.sparxsystems.com/downloads/resources/booklets/enterprise_architect_sdk.pdf

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Enumeration Set - Tagged Value Type
« Reply #4 on: April 18, 2016, 09:35:41 am »
Not sure if this can help you

Tagged Value Type = Spin

Type=Spin;
LowerBound=x;
UpperBound=y;
Default=Val;

Enables creation of a spin control with the value of LowerBound being the lowest value and UpperBound being the highest value. You can also set a default within that range.

Reference: "4 Tagged Value Types" page 81 in http://www.sparxsystems.com/downloads/resources/booklets/enterprise_architect_sdk.pdf
Hi serodya,


I guess I wasn't clear enough.  It needs to be a multi-valued set.  That is from the set of check boxes, I need to be able to select more than one.  Otherwise, a simple Enumeration would have done.  AFAIK, a Spin, only lets you select a single value.


Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!