Book a Demo

Author Topic: Tagged Values order  (Read 6010 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Tagged Values order
« on: September 14, 2016, 06:52:48 pm »
Hi,

I tried to find a thread on this topic as I have a feeling it's been discussed before: is there a way to change the order of Tagged Values that have manually been created on a Class or an Attribute?
I cannot find any position property in the DB e.g. within t_attributetag or t_objectproperties

EA seems to display them in the order according to their creation date/time

Any hint?
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


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 Values order
« Reply #1 on: September 14, 2016, 07:47:11 pm »
Hi Guillaume,

I don't know of a way to influence the order of tagged values.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged Values order
« Reply #2 on: September 14, 2016, 09:33:10 pm »
I have the impression that they are always sorted alphabetically. There is that A-Z button (which I never have used until now). That just seems to be a combination-switch with the compartment button left of it. When you enter new TVs they appear always sorted alphabetically within the existing TVs.

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Tagged Values order
« Reply #3 on: September 14, 2016, 10:30:57 pm »
I found that EA sorts Tagged Values according to the PropertyID value which is read-only (via the API or a SQL UPDATE). It explains why TV are listed on the created order.
Hence it looks like we need an enhancement in EA from Sparx to achieve this.

A script could attempt to create tagged value clones with the requested order and delete the old ones but that doesn't sound right.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Tagged Values order
« Reply #4 on: September 15, 2016, 10:16:39 am »
I found that EA sorts Tagged Values according to the PropertyID value which is read-only (via the API or a SQL UPDATE). It explains why TV are listed on the created order.
Hence it looks like we need an enhancement in EA from Sparx to achieve this.

A script could attempt to create tagged value clones with the requested order and delete the old ones but that doesn't sound right.
It may not sound right, but (effectively) it's what you'll have to do.

We have an automatic QuickLinker Generator and since the QuickLinker lists the relationships in the order it encounters them in the list (for relationships between existing elements), we had to order the list according to our needs.

If you don't want to create new TVs, you could overwrite the existing ones to get them in the right order.

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