Author Topic: Ordering the display of attributes  (Read 1333 times)

BruceTOGAF2

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Ordering the display of attributes
« on: August 21, 2020, 11:09:12 pm »
I have a class element with stereotype "Logical Data Entity". From the context menu of this element (displayed in a diagram) I choose 'Features and Properties' > 'Attributes'. Then I can add attributes to the Logical Data Entity but they are always listed in alphabetical order.  I want the ID to be the first attribute displayed, but I seem unable to force any ordering of attributes. How can I change the ordering of attributes displayed in my diagram?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11299
  • Karma: +421/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Ordering the display of attributes
« Reply #1 on: August 22, 2020, 01:36:24 am »
Go the the features window and use Ctrl+Up or Ctrl+Down to order the attributes.

Geert

pvickers

  • EA User
  • **
  • Posts: 44
  • Karma: +4/-0
    • View Profile
Re: Ordering the display of attributes
« Reply #2 on: August 22, 2020, 03:25:05 am »
Also, you can set your preferences for this.

Go to "Start".."Preferences"..
Then on the Preferences dialog, select "Objects".

Then on the right you should find a checkbox labeled "Sort features alphabetically".

Perry
« Last Edit: August 22, 2020, 03:36:58 am by pvickers »

BruceTOGAF2

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Re: Ordering the display of attributes
« Reply #3 on: September 02, 2020, 06:44:03 pm »
Thank you Geert Bellekens. Your solution works perfectly.

BruceTOGAF2

  • EA User
  • **
  • Posts: 74
  • Karma: +0/-0
    • View Profile
Re: Ordering the display of attributes
« Reply #4 on: September 26, 2020, 02:09:15 am »
In the features window I am successfully using Ctrl+Up or Ctrl+Down to order the attributes.  However, if a assign a custom stereotype (Business Identifier) to an attribute, (although the features window allows me to set the attribute to the top position) the diagram always displays the stereotyped attribute at the bottom of all the other attributes.

How can I force the diagram to display the stereotyped (Business Identifier) attribute at the top of all the other attributes?

How can I force the diagram to display attributes in the same order that they are displayed in the features window?

 

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11299
  • Karma: +421/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Ordering the display of attributes
« Reply #5 on: September 26, 2020, 02:53:23 am »
There's an option somewhere that controls the grouping by stereotype of attributes.
If you turn that off, the attributes will show in their actual order.

Geert

PS. There is a UML native isID property that you might want to use instead of a stereotype.

slavok1

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Ordering the display of attributes
« Reply #6 on: November 25, 2021, 12:39:00 am »
Does anybody know how to set the own order of the attribute groups based on stereotypes?