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: What determiones order of displayed link info?
Topic Summary:
Created On: 30-Jul-2007 01:46
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.
 30-Jul-2007 01:46
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

Hi,

When using a "for do" loop in a DXL Layout script to display information about links for an object, what determines the order of appearance of the displayed link information? I used to think that the top down order was based on chronological order of link creation with the most recent link info at the top. However, a check of link creation dates has dispelled this for me. Anyone know?

Also, has anyone seen the order of displayed link info in a DXL layout column flip? I have received reports from users that they are sure that they have opened a module and the order in which link info is being displayed in a DXL Layout column has flipped over - what used to be at the top of the displayed list is now at the bottom - they report that it seems to be a random occurance but was wondering if anyone else has experienced this?

-------------------------
Paul Miller
Specification Practices Specialist,
EuroCyber,
Melbourne, Australia.
Mobile: +61 (0)418 135 103
Web Site: http://www.eurocyber.biz
E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz
Report this to a Moderator Report this to a Moderator
 30-Jul-2007 08:39
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

This is not literally answering your post, but I always use skip lists in order to control the order of link display and in order to avoid such surprises.

Regards,

Peter
Report this to a Moderator Report this to a Moderator
 30-Jul-2007 13:37
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I am pretty sure that the order for all "for something in thing" loops is creation date, although I have never actually sat down and tested this because it has never been important.
In the case of layout dxl, the order in which links are displayed seems to be determined by the creation date 0f the target/source object, not the link itself.

Peter's advice is good. Always use skip lists if the order is significant. This is one of the best features of DXL. It gives you free sorting and also prevents duplicates in the list.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 30-Jul-2007 22:01
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Peter and Tony are suggesting this:

for each link
{ put in the Skip list KEY Target ObjID, DATA you want to display about that target
}
// Extract link info from Skip in sorted TargetID order:
for DATA in skip do
{ displayRich(DATA)
}
Report this to a Moderator Report this to a Moderator
 31-Jul-2007 18:03
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

I also always thought that most things in for loops went by date, somehow. But links...I have seen things like your users report. I developed a script to gather linked requirements and copy them into the current module---basically a tree traversal (because of how we link here) that gets data only from leaf nodes. It prompts if there are any differences. (It turned out that, for our use, most of my fancy data structures-tree traversal-algorithm stuff was overkill, but I digress...)

Anyway, in testing it I found that no, the order that you get links in is NOT always the same. I had a tree structure linked as shown attached. I found that it would follow links so as to get the leaf nodes in different orders (despite having the same code)--but always in the same order as was displayed by the traceability columns. Right now, the columns are showing me "LDCA" (and I haven't gotten it to do anything different today), but in the past I've seen "ADCL" and "DCLA", and possibly others since those are the ones I have written in my notes.

All that is to say that I noticed the issue in my scripts, but that it was the same in Telelogic scripts (the traceability columns). It occurs to me now, though, that perhaps I haven't been able to reproduce it today because we went from 7.1 to 8.1. I wonder what version you're running?

Hope my ramblings are helpful....

Chris
Report this to a Moderator Report this to a Moderator
 3-Aug-2007 17:00
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

In looking over the readme for the new patch today, I noticed the following as "New in version 8.1":

Data Accessibility makes data easier to find-->Traceability-->Link order consistency between link tips and Traceability columns

Maybe that is this same issue?
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.