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: DXL Sorting
Topic Summary: How can I sort in the Analysis Wizard DXL?
Created On: 15-Jun-2007 15:59
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.
 15-Jun-2007 15:59
User is offline View Users Profile Print this message


Corey Carroll

Posts: 48
Joined: 25-May-2006

I need to sort information within the Analysis Wizard DXL.  I am displaying one attribute, but would like to sort on another attribute to display the correct order of the links.  Everytime I insert the sort function, DOORS vanishes and I have to try all over again.  Help!
Report this to a Moderator Report this to a Moderator
 15-Jun-2007 16:45
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

never heard of anyone being able 'SUCCESSFUL' to filter or sort with layout dxl -- you would be making DOORS busier than a revolving DOOR
Report this to a Moderator Report this to a Moderator
 15-Jun-2007 16:47
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

[1] Are you saying you want to sort the objects in the module?

Don't add sorts nor filters to Layouts nor Attr DXL. The context for those is the current object and it will seriously screw things up if one object tries to sort the module based on values that haven't been calculated yet for other objects. I once tried to have a layout decide whether the 'obj' should be displayed or not, using accept and reject. It doesn't work since objects that are rejected from the current view are not calculated.

I'd add the layout as a column, then define the sort, then save it as a view.

Having said all that, it COULD be possible to define the sort or filter in the layout, but the layout would need to be coded such that it only calculates for exactly one object in the module. I cannot think of how that would work, but it would need some kind of 'for object in module' look in order to determine if this 'obj' is the right object, and then specify the sort or filter. I doubt this is going to work.

[2] Are you saying you want to display each object's links in a reasonable order?

You can modify the layout wizard. Instead of 'display' or 'displayRich', add the value you want to display as the DATA of a Skip, adding the sort criteria (such as the target object identifier) as the KEY. After the link loop, loop through the Skip displaying the value. This works as values are retrieved from the Skip is 'KEY' sorted order. After that, delete the Skip.

- Louie

Edited: 15-Jun-2007 at 16:54 by Louie Landale
Report this to a Moderator Report this to a Moderator
 15-Jun-2007 17:56
User is offline View Users Profile Print this message


Corey Carroll

Posts: 48
Joined: 25-May-2006

I have been successful in using a filter in DXL to only display the information I need.  Now I am trying to display the multiple links in a sorted order based on another attribute within the module the links are being pulled from.  I have never built a skip list in DXL, so that will be a challenge for me!

Report this to a Moderator Report this to a Moderator
 18-Jun-2007 16:33
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

See attached to get going.
Report this to a Moderator Report this to a Moderator
 19-Jun-2007 20:03
User is offline View Users Profile Print this message


Corey Carroll

Posts: 48
Joined: 25-May-2006

Thanks!  I'll see how far I can get!
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.