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: Loading modules true vs false
Topic Summary:
Created On: 31-Oct-2007 15:01
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.
 31-Oct-2007 15:01
User is offline View Users Profile Print this message


Dan Hopping

Posts: 75
Joined: 21-Nov-2002

When I load a module 'false' (i.e. hidden)
Module m = read(n, false)
Then load a view containing a different filter
load view "myViewDifferentFilter"
The new view's filter is not respected when I loop thru all objects (the original count of cbjects matches the default view filter)

However, tf I load the module true
Module m = read(n, true)
The filter is respected.

I have found that I can set the filtering on a module that was opened false.

Filter f = attribute "Requirement" == "Shall
filtering on
set f
refresh current

Does anybody know >>WHY<< the filtering of the background module does not respect loaded views?

Since I know about this, I can just manually set the filter and get around it however. the scary question to me is... Are there other differences I don't know about when modules are loaded 'false' vs. modules that are loaded 'true' .
Report this to a Moderator Report this to a Moderator
 31-Oct-2007 15:14
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

From my experience you can not set a view when the module is hidden, however you can set all the aspects of the view, i.e. the filter.



-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 31-Oct-2007 15:17
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

I hate to admit it, but there seems to be some logic behind this. If you open a module hidden, you can't see it, so how can you have a view on it? Provided you think of it from the GUI point of view, it makes sense. It's only when you start to think of it from a scripting point of view that it gets confusing.

Paul.

-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 31-Oct-2007 16:38
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

An unsupported function that lets you load a view when a module is hidden:


quote:

Added a new variant of the view load perm:

"bool load(Module, View, bool, bool)", where the added 4th parameter specifies whether to check that the module is displayed (as other variants always do), and to return false if the module is not displayed and the client is not running in batch mode. If the 4th parameter is set to true, then the behaviour is as for existing variants: the perm does not load the view, and it returns false. If the parameter is set to false, then this check is bypassed, so that a view can be loaded without the module being displayed, even when not running in batch mode.



So use the form "load(Module, View, checkSave, false)" to load a view when the module isn't displayed.

The checkSave parameter tells whether the code should prompt the user to save any unsaved changes to the current view first (if there are any). This parameter is already available, but it doesn't seem to be covered in the DXL manual...


-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 31-Oct-2007 17:04
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

David,

Thank you very much for posting that! That's great to know.

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


Dan Hopping

Posts: 75
Joined: 21-Nov-2002

Hi David,

I tried using the following and it didn't seem to load the view. (i.e. the count still reflected default view filtering)

bool b = load(m, v, true, false)

Since it's undocumented and I am just fishing, I tried all variations of true, false for the last two args.
The function always returns false and the count always reflects the default view filtering.

extra...
I even tried it after loading Module m = read(n, true)
It still returns the default view filter count. If I remove the last two args it loads and filters fine.

Are you using 8.2? We are at 8.106. Maybe a difference???

Dan
Report this to a Moderator Report this to a Moderator
 1-Nov-2007 15:08
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

I'm using the same DOORS version you are currently. We will be upgrading to 8.2 shortly. I haven't actually tried using this command myself. It's just information I got from the guy who taught the DOORS, DXL, and DOORS Admin classes I attended back in April. It very likely could have been added in 8.2.

For reference, I also tried it, and it returned false.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Edited: 1-Nov-2007 at 15:17 by David Pechacek
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.