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: Trying to load "Standard view" without it being displayed
Topic Summary:
Created On: 9-May-2006 17:33
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 Tim Perry, on Wednesday, May 10, 2006 5:40 PM

Answer:
Thanks Ron and Louie!

You were both correct. I added "entire" to my script and now it analyzes all objects, bypassing any filter the user has defined in the default module. I tested it a number of times and it provided consistent results every time. This was very important, as the script performs our Requirements Volatility measurements.

Thanks,
Tim
 9-May-2006 17:33
User is offline View Users Profile Print this message


Tim Perry

Posts: 17
Joined: 31-Dec-2002

Hello,

Below is a snippet of code which loads all formal modules, one at a time, in a specified project for some analysis. The problem I am having is that if I specify "false" on line three (to not display the module on the screen), the code ends up analyzing the default view instead of the "Standard view" view. What I would like to do is to be able to change line three back to "false" so that the user does not see any of the modules being loaded. Any ideas?

Thanks in advance,
Tim




...
1) for itemref in p do {
2) if (type itemref == "Formal") {
3) Module m = read(fullName itemref, true)
4) string viewName = "Standard view"
5) load view viewName
6) current = m
...
Report this to a Moderator Report this to a Moderator
 9-May-2006 17:53
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Load view doesn't work if you do not display the module.
To process all non-deleted objects use the

for o all in m do {} construct
Report this to a Moderator Report this to a Moderator
 9-May-2006 20:23
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

As Ron suggests it appears you prefer the standard view in order to have confidence in your "for obj in mod do" loop. That's a tricky loop. I ONLY use it when the script is designed to respect the current display set, such as when I put Next and Prev buttons on a dialog that displays an object.

As you've noticed, opening a module visible is VERY slow compared to opening it invisibly.

Use "Entire": Depending on the current display is very problematic. Routinely use the "for obj in entire mod do" loop. This gets all the objects regardless of the current display set. The next line is typically "if (isDeleted(obj)) continue". Exclude other objects, perhaps with "if (cell(obj) or row(obj) or table(obj)) continue", to not consider an object associated with a DOORS table. If you prefer to consider only objects that qualify for a particular filter then you can manually calculate the filter for each object: if (null obj.NameAttr "") continue"

- Louie
Report this to a Moderator Report this to a Moderator
 10-May-2006 17:40
User is offline View Users Profile Print this message


Tim Perry

Posts: 17
Joined: 31-Dec-2002

Answer Answer
Thanks Ron and Louie!

You were both correct. I added "entire" to my script and now it analyzes all objects, bypassing any filter the user has defined in the default module. I tested it a number of times and it provided consistent results every time. This was very important, as the script performs our Requirements Volatility measurements.

Thanks,
Tim
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.