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: Open CP Partner
Topic Summary:
Created On: 4-Nov-2003 18:50
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 , on Wednesday, November 5, 2003 2:42 PM

Answer:
Try:

print fnGetCPModulePath(fullName current Module)

I came across this in DOORS5.2 lib/dxl/project/apiserver/apilibrary.inc. It seems to return the fullName of the CP partner or null if there is none.
 4-Nov-2003 18:50
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Am running DOORS v52. I figured out how to open the CP Partner module from a normal formal module as attached.

Unfortunately, it opens the partner visibly, and the only way to get the Module handle is to ask what's current.

Anybody know of a better way to get at the CPS Partner module (if any) of a given fomal module? What I probably want is a function that returns the name; then I can figure out if its a real module and whether or not its open.

- Louie
Report this to a Moderator Report this to a Moderator
 5-Nov-2003 09:44
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Interesting...

I have never seen the fnCPS_OpenPartner() function, is that yours?

The only way I can think of at the moment to get the name of a CP partner module is to inspect the linksets in the Change Proposals Links module.
Unfortunately this will only work after a CP has been raised: The CPS does not use link module descriptors and the linksets are not created until needed.

Alternativley you could inspect the incoming CP links, but this takes time and again, only works if a CP has been raised.



-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 5-Nov-2003 14:18
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Never mind...

Edited: 5-Nov-2003 at 14:26 by Dennis Lockshine
Report this to a Moderator Report this to a Moderator
 5-Nov-2003 14:48
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I find quite a few interesting system calls like this by noticing the functionality is already in the natural module menu. In this case, I edited ../lib/dxl/config/formal.dxl (that defines the formal module menu), and looked for "Open CP Partner", which is the text found in >>Tools >> CPS >>... Function fnCPS_OpenPartner is the one executed in the CreateItem() call. Unfortunately, the function itself is in an encrypted include file.

- Louie
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.