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: Analysis Wizard - want to modify results
Topic Summary: How do you modify DXL code to only display a subset of results
Created On: 26-Jun-2007 23:21
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.
Answer This question was answered by Brenda Cornell, on Wednesday, June 27, 2007 6:19 PM

Answer:
Excellent. That works. I have very limited skills when creating code, but can understand written code to carry forward to other applications. Thanks again.
 26-Jun-2007 23:21
User is offline View Users Profile Print this message


Brenda Cornell

Posts: 29
Joined: 7-Jul-2005

I have a module called User Requirements List, that has a more detailed requirement relationship with 3 module types: (System Requirements List, Use Cases and Business Process Descriptions), which all use the link_module of 'Satisfies'. The System Requirements List is easy since it will always be one module, but the Use Cases and Business Process Descriptions can have multiple modules (each depicting a separate use case or business process description.)

I need to run a traceability report that will show me the links between my User Requirements and the other detailed requirement modules, the end result being 4 columns, as follows.


User Requirement System Requirement Use Case Business Process Description
UR1 SR1
UR2 SR2 UC1
UR3 SR3 UC2 BPD1
UR4 UC3 BPD2
UR5 UC4
UR6 BPD3


Since System Requirements is it's own module, the analysis wizard does that easy enough.

What I need to know is how can I modify the analysis wizard code for my Use Case column to indicate that I only want to see results in that column where the Object Identifier contains UC. Likewise I want to display a results in another column for the Business Process Description, where the Object Identifier contains BPD.

How do you write the IF statement in the DXL code that the Analysis Wizard created, in order to just display the BPD or the UC modules??

I'm including the current DXL code that I want to modify.

Thanks

-------------------------
Brenda Heiss Cornell
Report this to a Moderator Report this to a Moderator
 27-Jun-2007 14:14
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Same as an if statement anywhere else.

Anyway, I added the code to check for "UC" in the identifier of the linked object. I also deleted two unused strings the wizard always puts in and replaced the other two strings(s and disp) with Buffers to make it far more memory efficient. I recommend doing this with any layout DXL column. Otherwise your module will slowly slow down as the string table builds to a huge size from all the strings being put into it by the layout DXL code. Buffers can be deleted and prevent this.

Enjoy.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 27-Jun-2007 18:19
User is offline View Users Profile Print this message


Brenda Cornell

Posts: 29
Joined: 7-Jul-2005

Answer Answer
Excellent. That works. I have very limited skills when creating code, but can understand written code to carry forward to other applications. Thanks again.

-------------------------
Brenda Heiss Cornell
Report this to a Moderator Report this to a Moderator
 19-Oct-2007 15:06
User is offline View Users Profile Print this message


Brenda Cornell

Posts: 29
Joined: 7-Jul-2005

At the end of the code, it indicates to Delete(objID) for those that don't match the 'SR' criteria.

Is there a way to just HIDE the data, and not delete it from the view?? The reason I ask is that if I run a normal wizard, at a depth of 3 or 4, if there are relationships between level 1 and level 2, the normal wizard would display the relationship from one column to the other (I'll do my best to illustrate below)


Business Req ID User Req ID System Req ID
Original Req. Linked to BR Linked to UR

-------------------------
Brenda Heiss Cornell
Report this to a Moderator Report this to a Moderator
 19-Oct-2007 15:06
User is offline View Users Profile Print this message


Brenda Cornell

Posts: 29
Joined: 7-Jul-2005

At the end of the code, it indicates to Delete(objID) for those that don't match the 'SR' criteria.

Is there a way to just HIDE the data, and not delete it from the view?? The reason I ask is that if I run a normal wizard, at a depth of 3 or 4, if there are relationships between level 1 and level 2, the normal wizard would display the relationship from one column to the other (I tried to build a view, but the spacing didn't work)

-------------------------
Brenda Heiss Cornell

Edited: 19-Oct-2007 at 15:17 by Brenda Cornell
Report this to a Moderator Report this to a Moderator
 19-Oct-2007 17:34
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

Brenda,

The code deletes a buffer for memory allocation. The data is being hidden. Nothing but temp space is being deleted.

You're saying that you don't want to show recursive links to "hidden" data, correct?

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts
Report this to a Moderator Report this to a Moderator
 20-Oct-2007 16:22
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Brinda, Taking a guess at what your asking, there is a myth that data from one layout-dxl can not be displayed in another column.

However it is possible to save the layout-dxl output to an attribute but this can be tricky and shouldn't be tried at home. Leave it to the "Myth Busters" who have years of professional experience to protect them.

In other words, your goal may be better achievable with regular dxl, attribute-dxl or another additional layout-dxl column.

Edited: 20-Oct-2007 at 19:55 by ron lewis
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.