Book a Demo

Author Topic: Tagged Value Reference List  (Read 5427 times)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Tagged Value Reference List
« on: July 02, 2013, 01:43:24 am »
Hi all,

I recently faced the DAO.Field Exception-Problem, where the tagged value's "Value" field can just contain 255 chars. The solution was to use the notes field in this case since it has unlimited space available. The application in my case was to store several references to elements of the same sterotype in the tagged value, namely those EA_GUIDs.

Today I was creating a new Stereotype in a Profile Package with the Profile Helpers and came across the wizard to the Tagged Value Section, where you can create new Tagged Values. I opened the context menu and expanded "Add Specialized Tagged Value" and saw the "Reference List" Option. This creates a 0..* Tagged Value Connection in the profile diagram.

I wonder if this Reference List is treated differently, i.e. that I can save more than 255 chars of EA_GUIDs which is exceeded after a handful of elements and therefore not very practical.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Tagged Value Reference List
« Reply #1 on: July 02, 2013, 03:19:13 pm »
Hi,

you can use the tagged value type:
Type=Memo;

With this type you have no limits in entering text.

Seach in the help for: Tagged Value, Types
for the available types.

Best regards,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Tagged Value Reference List
« Reply #2 on: July 02, 2013, 03:48:05 pm »
I haven't tried it myself, but it would seem logical that the RefGUIDList type of tagged values allow more then 255 characters to store the ea_guids. Otherwise you would be limited to maximum 6 references in this list.

Why don't you try it and let us know.

Geert

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Re: Tagged Value Reference List
« Reply #3 on: July 02, 2013, 05:40:04 pm »
I have tested Geerts Proposal now and unfortunately, after six references in the RefGUIDList the DAO-Error occurs, so basically this "feature" is not usable at all.

Type=Memo is the only solution to this problem, but I found it annoying to manage all the neat tagged value updates when deleting elements by myself in the addin.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Tagged Value Reference List
« Reply #4 on: July 02, 2013, 06:52:22 pm »
That is something I consider a bug.
I think that if you send that to Sparx as a bug report they will probably fix it.

Geert