![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DXL script to sort & display incoming links by absolute number Topic Summary: Created On: 15-Sep-2004 20:07 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Are there any DXL scripts available to sort and display incoming or outgoing links to an object within a formal module by Absolute Number of the links? There are DXL scripts to sort and display incoming links by object number. When there are multiple links to an object, these links are displayed in order of object number and the absolute numbers are not in any order. Would like a script to display multiple links to an object in sorted by Absolute Number.
|
|
![]() |
|
![]() |
|
If you have a layout DXL that sorts by object number, you can replace the object number with the absolute number and probably use the same script.
For instance: If there is a line somewhere that reads something like: s = (number o) replace it with: s = o."Absolute Number" In this example, s would be the string that gets stored and sorted and o would be the object you are linked to. I hope this helps. Brian Azelborn Rockwell Collins |
|
![]() |
|
![]() |
|
Hi,
I will be very intersted in the DXL script for sorting links by object number. do you think you can post it here, or send it to me by mail ? Thanks, Asaf. |
|
![]() |
|
![]() |
|
Edit your Layout DXL to put the text to be displayed in a skip list rather than displaying it immediately. Then loop through the skip list and display the entries. I would use a concatenation of module fullName for object number for the skip list key.
------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
If your project policy features a strong module prefix policy they I'd use the Object Identifier as the Skip key.
On a side note: I haven't had luck retrieving stuff from a Skip List in any particular order, certainly NOT the order in which I put the information. I did write a retrieve-from-skip in the right order couple of functions, where it knows the key of the last retrieval and scans the entire Skip looking for the next key that is just "bigger" than the last one retrieved. It was clumsy but it worked. Are you suggesting that the "for data in Skip loop" does it in some sort of order? - Louie |
|
![]() |
|
![]() |
|
In my experience, the "for entry in skip list do ..." loop return entries ordered by key.
Note however that if you are storing absolute numbers or paragraph numbers as a string, then lexicographically "100" comes before "2", and "1.10" comes before "1.9", so you need to do some extra stuff like padding out the numbers with leading zeroes before using them. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Writ a couple routines to pad the fields of a Paragraph Number with leading zeros, so it will sort correctly for reasons you suggest. Got a sibling UnPad function as well.
These should work for normal string versions of integers, such as "33". - Louie |
|
![]() |
|
![]() |
|
Sorry,
Was missing few lines. don't mind this message. Asaf. Edited: 29-Sep-2004 at 10:36 by Asaf Kivity |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.