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: Manage Open Modules --- "References"
Topic Summary:
Created On: 27-Jul-2007 22:05
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.
 27-Jul-2007 22:05
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Does anybody know exactly what the "References" column in the Manage Open Modules dialog box (on the Tools menu of the main shell) means? And, assuming it's what I think it is--namely, how many other modules/views use that module---does anybody know how that column is generated? I found the DXL for the dialog but it is of course encrypted.

We have some triggered routines that open certain versions of modules under some conditions, and also close the "current" which was originally opened. That is all great, but we've found if we close something via DXL, that was displayed from a column in another module, DOORS goes down in flames. So I'm thinking that the column in the "MOM" dialog is the information that we need (whether anything else is using the module), but not sure how to get that.

Any insight at all would be appreciated.

Chris

Edit: Okay, I put the full question in here now. I think .

Edited: 27-Jul-2007 at 23:12 by Chris Jones
Report this to a Moderator Report this to a Moderator
 27-Jul-2007 22:25
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

Chris,

You need to be more specific in order to get help. I read your post three times and cannot figure out what you are asking.

Manage open modules is just that--it shows which modules are currently open so you can switch between them easily.

You mention a column. Which column?

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts

Edited: 27-Jul-2007 at 22:38 by Kevin Murphy
Report this to a Moderator Report this to a Moderator
 27-Jul-2007 22:32
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Errrrr, right......sorry about that, I kind of forgot the most important detail .

I mean the "References" column in the Manage Open Modules dialog. The one at the right hand side, that has a number in it for each module that's open. I'm trying to figure out exactly what "References" are to a module, and how it (the dialog) figures out how many there are.

I hope this makes more sense. Next time I will try to post with a bit more sleep behind me .

Chris
Report this to a Moderator Report this to a Moderator
 27-Jul-2007 22:36
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

I just noticed you put the column you're talking about in the TITLE of your post. It's always better to put you full question in the body of the post.

If you need to know whether a module is open, a simple open(ModName_ modRef) should do the trick. You could do a check on open before calling close and that might help. You could even do a for Module in Folder to check every single open module.

Closing a module shouldn't bring DOORS down in flames. You've got something else going on.

I did a quick test on the References column and it appears to show numbers other than 1 on just Link Modules. Have you seen anything different?

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


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

In my limited testing, I'm thinking it goes through the link mappings of all the opened modules, and just counts how many modules use that link module.

-------------------------
Kevin Murphy
http://www.baselinesinc.com
The Requirements Management Experts
Report this to a Moderator Report this to a Moderator
 27-Jul-2007 23:10
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Hmm....that would make some sense. I don't think I've ever seen greater than 1 reference to formal modules either.
Hadn't thought of using open() to check....not sure if it will work for what I'm trying to do (but then, I'm not even sure what exactly it is I'm trying to do...).

Also, on re-inspection, DOORS goes down in flames "if you close a module that was open (via DXL), and then you traverse a link to get to that doc..."---from the appendix to the trigger code, written by a different person. It's hard to explain.

Anyway, thank you for your help and patience! I'll have to get a fresh start on things come next week...
Report this to a Moderator Report this to a Moderator
 30-Jul-2007 13:49
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Beware of closing link modules using DXL.

Doors opens and closes link modules automatically, so you should not normally need to worry about them in your scripts.

If, however you have a script that really does need to open and close link modules then you should be aware that you might get a nasty error if you attempt to close a module that is being referenced by a loaded linkset. These are the references that are displayed in the Manage Open Modules dialog.

You can prevent errors by unloading the linkset before closing the module.
The folowing from the DXL manual under "Linksets".

void unload(Linkset ls)
void unload(Module linkMod)

-------------------------
Tony Goodman
http://www.smartdxl.com
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.