Book a Demo

Author Topic: Tagged values with a Memo type  (Read 6716 times)

Tangent

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Tagged values with a Memo type
« on: July 26, 2011, 09:55:00 pm »
Hi everyone,

I have created a UML Profile which has a custom stereotype element (for organisation chart roles).  This stereotype has some custom tags that I have configured - Person Name, Address, etc.

I am able to see these custom tags when I finally come to use my new profile.  However, I have configured my 'Address' tag to have a Type of 'Memo', yet this does not work as I would expect.

I would expect my Address tag to behave in the same way as other 'Memo' tags created through the Settings > UML Types > Tagged Value Types screen.  However this is not the case.

Please can someone explain what I am doing wrong?!!!

I will try to add a screenshot of my config (not sure whether this will work)...

« Last Edit: July 26, 2011, 10:08:58 pm by tangent »

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: Tagged values with a Memo type
« Reply #1 on: July 26, 2011, 10:04:45 pm »
In your profile definition, set the "Initial Value" property of the attribute "Address" with the string "<memo>" (without quotes, but with the <> symbols).

Tangent

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Tagged values with a Memo type
« Reply #2 on: July 26, 2011, 10:17:03 pm »
That worked - Thanks!

When I go into the memo editor pane, it is initialised with a funny value: Default: <memo>

Is there any way of changing this too?  Please note this is a 'nice-to-have', so many thanks again for fixing my problem.

Cheers,
Tom

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged values with a Memo type
« Reply #3 on: July 27, 2011, 06:23:17 am »
No. That's one of EA's design flaws. Also they misuse the memo field to store enumeration values. A typical "extension" since in former times value and notes were just what their name suggested.

q.

Tangent

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Tagged values with a Memo type
« Reply #4 on: July 27, 2011, 07:27:50 pm »
Thanks for the additional info qwerty.

David Rains (bioform)

  • EA User
  • **
  • Posts: 84
  • Karma: +0/-0
    • View Profile
Re: Tagged values with a Memo type
« Reply #5 on: August 02, 2011, 01:32:51 am »
Is this the way that you make use of the user created structured tags within your stereotypes?

e.g., define MyStructuredTagType using the "UML Types\Tagged Value Types" sub menu, then going back to your stereotype and set the initial value to <MyStructuredTagType>?

Thanks,
David

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged values with a Memo type
« Reply #6 on: August 02, 2011, 06:42:59 pm »
No. That only works for <memo>. What you want needs a MDG file.

q.