Book a Demo

Author Topic: Select dialog for custom types in tagged values  (Read 5893 times)

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Select dialog for custom types in tagged values
« on: November 25, 2011, 10:49:30 pm »
Hello,

I have a UML profile with some custom stereotypes. It has some attributes with no primitive but my own complex types. I thought, that in a diagram based on this profile, I would see some kind of select dialog to choose the proper element for this type. But I see only a string field.

The only way I managed to handle this are TaggedValue types and using "Type=RefGUID;Stereotypes=StandardDEU;". But this is quite labor intensive and I want to avoid it.

I'm quite sure that there is a way to do this and would be thankful for any hint.

Regards,
Guido Franz
« Last Edit: November 25, 2011, 10:53:18 pm by gfranz »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Select dialog for custom types in tagged value
« Reply #1 on: November 26, 2011, 12:09:37 am »
I'm not sure what you're after. Are you looking for the toolbox?

q.

gfranz

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Select dialog for custom types in tagged value
« Reply #2 on: November 29, 2011, 04:55:58 pm »
I try to display a pop up window, if there is a complex type for a stereotype attribute in my metamodel. But EA only displays a simple text field for this tagged values, so I cannot link an existing classifier to it. Support told me, that taggedvalue types are the only way to do this.

Regards
Guido Franz

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Select dialog for custom types in tagged value
« Reply #3 on: November 29, 2011, 06:53:10 pm »
I still don't get it what you are trying to do. What do you mean by "complex type"? Where and how do you access the attribute? Maybe you should explain step by step what you want and where it fails.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Select dialog for custom types in tagged value
« Reply #4 on: November 30, 2011, 08:40:41 am »
If you want a dialog to come up you can use an add-in tagged value type. When a user attempts to edit this type it sends a broadcast to the specified add-in and saves the results back.

(See http://www.sparxsystems.com/enterprise_architect_user_guide/9.0/standard_uml_models/predefinedtaggedvaluetypes.html and http://tagged_value_broadcasts.htm)

The second option doesn't bring up a dialog, and appears to have escaped the help... You'll also need the latest version of EA.

The process is similar to adding an enumeration tag. (http://www.sparxsystems.com/enterprise_architect_user_guide/9.0/standard_uml_models/addingenumerationstagstost.html) Create a class in your profile that contains the various fields you want, (exactly as if you were adding tagged values to a stereotype but without the "stereotype" stereotype).  In your stereotype, create an attribute and set the Classifier to the class you just modeled.

When applying an instance of this stereotype the tagged value will expand to allow editing of the child properties. Have a look at the ODM profile to see this used. (If you don't have the ODM profile you'll need a more recent version of EA.)

Edit: I have now asked for the relevant help to be added.
« Last Edit: November 30, 2011, 09:03:12 am by simonm »