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: Recursive Traceability help - specific module vs all open modules
Topic Summary:
Created On: 19-Jun-2008 12:08
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 ron lewis, on Thursday, June 19, 2008 2:06 PM

Answer:
You can pass a string to the module that you want to filter on.

In example code that follows if sModuleName="" no filter is applied else
a filter is applied.

Note: I didn't debug the code so there may be some typos and such in my mods
 19-Jun-2008 12:08
User is offline View Users Profile Print this message


Rich Mason

Posts: 26
Joined: 11-Apr-2007

Hi all

I got this script awhile back on these forums from a Grant Cyboron (?) for L3 in Jersey if I remember right. It's a great script and I use it for all my traceability. This one shows in links recursively throughout the system by indenting them in the same column.

What I don't like about this script is that the modules have to be open to show anything in the view. And then, once a parent module is open, it seems as if sometimes you'll get it's child inlinks regardless if the child module is open or not, or you'll get other module's inlinks at the same level too regardless if they are open.

What I would like to be able to do is show the inlinks recursively in the one column by indenting, like this script does, but be able to choose a specific module and it's children without those modules having to be open.

Is there somehow I can insert a module's location into this script with a function to look at one module specifically instead of all open modules?

Thanks In Advance

-------------------------
Rich Mason
richard_mason@drsoptronics.com
Report this to a Moderator Report this to a Moderator
 19-Jun-2008 12:20
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

You can filter out modules by adding line one line as designated
by //FILTER ON MODULE NAME

// make sure the module is open in at least read-only mode
string trgPath = fullName(source l)
if(trgPath !="My Module Full Name") continue //FILTER ON MODULE NAME
Report this to a Moderator Report this to a Moderator
 19-Jun-2008 13:02
User is offline View Users Profile Print this message


Rich Mason

Posts: 26
Joined: 11-Apr-2007

Ron

thanks a lot for the input. Got this to work, however, it seems as if the recursiveness at lower levels is now gone. I'm sure it's because I'm telling it to look only at the specific module path, but now I need to look at its children also. I used your modification and got the one level down to work, but even with the second level down module open, it would not show in the layout dxl column. Is there a way to modify your code so that the recursiveness is still present?

Thanks

-------------------------
Rich Mason
richard_mason@drsoptronics.com
Report this to a Moderator Report this to a Moderator
 19-Jun-2008 13:25
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Answer Answer
You can pass a string to the module that you want to filter on.

In example code that follows if sModuleName="" no filter is applied else
a filter is applied.

Note: I didn't debug the code so there may be some typos and such in my mods
Report this to a Moderator Report this to a Moderator
 19-Jun-2008 13:58
User is offline View Users Profile Print this message


Rich Mason

Posts: 26
Joined: 11-Apr-2007

works great. Thanks!

1000 cocktails to you sir.

-------------------------
Rich Mason
richard_mason@drsoptronics.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.