![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
Look here:
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thank you guys! You helped me a lot!
I just did it the way Louie suggested, using the lexNum function |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Order links
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.