Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Sorting of Enumerated attribute values
Topic Summary: Sorting of Enumerated attribute values within the object
Created On: 10-Oct-2007 02:03
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10-Oct-2007 02:03
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi All,

We have a multi-valued enumerated attribute for the objects in our modules. They were given the related numbers e.g Apple = 3   Orange = 1 Banana =2 . When all three of them are selected, we get the attribute values listed as:
Orange
Banana
Apple.

I want to sort these values alphabetically without disturbing the sequence of the objects in the module i.e sort the attribute values within the object window.
Apple
Banana
Orange.
I sorted the attribute values in the Enumerated window of the Attribute Type by using the arrows, but that does not seem to change the order in which they appear in the module after selection. They follow the order of the related number.
I tried to generate a script to convert the string value of this attribute to an array of strings and then sort the array.
Is there any way this can be done without changing the related number ?


Report this to a Moderator Report this to a Moderator
 10-Oct-2007 08:46
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Why do you care what the related number is?
Just change them.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 10-Oct-2007 17:05
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Is there any other purpose for the related number, except to display the selected values in that order? Can these related numbers be used in dxl code?

- Krishna
Report this to a Moderator Report this to a Moderator
 10-Oct-2007 17:59
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

The sole purpose of the related number is for sorting.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 11-Oct-2007 18:34
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You can also use them for filtering, making a query like "show me Fruits with value 2 or higher". A more realistic example would be attribute Severity with values Disaster(4), Terrible(3), Bad(2), Inconvenient (1), Inconsequencial (0), and then construct a query like "Show me all Severity of Bad ..err.. 2 or worse ..err.. higher".
Report this to a Moderator Report this to a Moderator
 11-Oct-2007 22:16
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Thank you all for the useful hints about the related numbers.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.