Book a Demo

Author Topic: Tagged value type not in property window  (Read 5146 times)

Rainer Hoerbe

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Tagged value type not in property window
« on: October 13, 2013, 07:27:42 am »
I created a tagged value type "Area of Applicability" with this spec in the Details field:
Type=Enum; Values=B2B,B2C,C2G,Intranet; Default=Common;
AppliesTo=Feature;Requirement

When I edit or create a new feature, the new tagged value type does not show up. It happens also when I remove the AppliesTo statement.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value type not in property window
« Reply #1 on: October 13, 2013, 08:41:46 am »
As designed:
Quote
Restricts the element types this tag can be applied to, where Type1 and Type2 are the valid types.
If you want a tag to show up automatically you should create a MDG with a specific stereotype. IIRC you can do that also with a template package (never did it that way myself).

q.
« Last Edit: October 13, 2013, 08:43:57 am by qwerty »

Rainer Hoerbe

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Tagged value type not in property window
« Reply #2 on: October 13, 2013, 07:50:41 pm »
The documentation on page "Create Structured Tagged Values" says, that "The Tagged Value type displays in the Defined Tag Types list" after I press save. It does not mention any extra steps that are needed to make it usable.

Re: functions as designed: I do not understand. If I put no "Apply To" statement, it should apply to all element types. But it does not show up at any type.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value type not in property window
« Reply #3 on: October 13, 2013, 10:07:37 pm »
You did not get the point. Defining a TV does not add it to all (or any) elements. It just makes it available (or if you restrict it, then only for the subset).

To make TVs appear automatically follow the steps I mentioned.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Tagged value type not in property window
« Reply #4 on: October 14, 2013, 09:03:11 am »
It probably needs to be AppliesTo=Feature[highlight],[/highlight]Requirement[highlight];[/highlight]
« Last Edit: October 14, 2013, 09:03:55 am by KP »
The Sparx Team
[email protected]

Rainer Hoerbe

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Tagged value type not in property window
« Reply #5 on: October 14, 2013, 09:07:08 pm »
I found the problem. The TV _is_ available, but the UI is not as I expected. I looked for an option in the TV window to add a value. However, one needs to select "tagged value" from "advanced" in the element's  context menu. Then only one can add the value in a second step.

Is there an easier path? Could a TV type made be part of a stereotype by default, possibly containing a default value, that the TV would behave like a basic property of an element?

If the solution involves the creation of an MDG: can I extend an existing profile or have to create a new one. I this a light-weight process?



qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value type not in property window
« Reply #6 on: October 14, 2013, 09:44:36 pm »
You should show the tagged values window: View/Tagged Values. It applies to selected elements/connectors.

The only way to create TVs automagically is via stereotypes defined in a MDG. Unfortunately creating a MDG is not that easy (see here). Further you can not reverse an existing MDG to modify it inside EA. You can only edit the naked XML :(

q.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Tagged value type not in property window
« Reply #7 on: October 15, 2013, 10:09:41 am »
Just one more small point - I think that in the line

Type=Enum; Values=B2B,B2C,C2G,Intranet; Default=Common;

the Default value should be one of the values specified in Values; that is: B2B, B2C, C2G or Intranet. (Or add Common to the list of values.)
Best Regards, Roy