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: Order links
Topic Summary: order links by occurrence, not by creation date
Created On: 20-Jan-2009 13:00
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.
 20-Jan-2009 13:00
User is offline View Users Profile Print this message


Jürgen Geiger

Posts: 4
Joined: 4-Mar-2008

I am currently developing a script that displays in a dialog box the object text of all objects that are linked from a particular object. I get the linked objects with a "for link in object" loop. By doing this, I get the links in the order of the creation date of the objects. However, I want to have the links ordered by occurrence in the target module.
How can I achieve this?

I thought of something like saving the links' object text and "next object" id in a skip list and sorting the skip list afterwards.

Is there an easier way to do this?
Report this to a Moderator Report this to a Moderator
 20-Jan-2009 13:45
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Look here:
Report this to a Moderator Report this to a Moderator
 20-Jan-2009 16:48
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

You can store the target objects in a Skip list, indexed by object Number.

This gets you nearly there, but you will also need something clever to sort by legal numbers - see Sorting by Object Number

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 20-Jan-2009 22:54
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

When you get lexNum function from Goodman, such a DXL might look like attached.

That works when all the target objects are in the same module. If you want to display all the objects of a module in Hierarchy order, for more than one module, then you've got a bigger problem. A solution may be to prefix the PaddedNum with the name of the module before putting it in the Skip list:

PaddedNum = name(module(oTarget)) "-" lexNum(oTarget)

- Louie

Edited: 20-Jan-2009 at 22:56 by Louie Landale
Report this to a Moderator Report this to a Moderator
 30-Jan-2009 10:36
User is offline View Users Profile Print this message


Jürgen Geiger

Posts: 4
Joined: 4-Mar-2008

Thank you guys! You helped me a lot!
I just did it the way Louie suggested, using the lexNum function
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.