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: Target Module name missing in Linkset
Topic Summary:
Created On: 6-Jan-2004 20:39
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.
 6-Jan-2004 20:39
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

DOORs Version 5.2

When I open a module and view the properties/Linksets tab I have a Linkset entry with a blank Target Module name. When I edit the entry to fill in the Target Module Name, Doors adds a new entry with the correct Target Module name. But now I cannot delete the original entry with the Blank Target Module Name. When I push the "Remove" button to delete the entry with the blank Target Module Name an Error Dialog box is displayed with the following Message:

Unable to remove linkset pairing:
Entry target module name

HA! No KIDDING !!!

Is there a way to remove (or fix) this entry ?
Report this to a Moderator Report this to a Moderator
 8-Jan-2004 14:24
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Link-Set Pairings LSPs in the user interface are the same as Link-Module Descriptors LMDs in DXL.

You'll have to do it with DXL. Loop through the LMDs in the module's folder. For each one get the Source, Target, and Link Module. If any of these represent modules that cannot be opened, then put the LMD in a DeleteSkip list. After the original loop, delete all LMDs in the skip.

- Louie
Report this to a Moderator Report this to a Moderator
 8-Jan-2004 16:31
User is offline View Users Profile Print this message


Lowell Wickman

Posts: 1
Joined: 1-Aug-2003

The attached code shows how to delete Link Module descriptors.
Report this to a Moderator Report this to a Moderator
 9-Jan-2004 21:15
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

Well Nice try folks...

I receive the error message that the target name is blank...So it will not allow me remove them programatically either. So now I'm stuck with those blank entries. I would really like to know how the target module names became blank in the first place.

Here is the code that I ran that was an attempt to clean the LMD's up. I'm open to any other ideas!!!


LinkModuleDescriptor lmd
Folder cf = current
string s,t,r

for lmd in cf do
{
s = getSourceName(lmd)
t = getTargetName(lmd)
if ((null s) || (null t))
{
ack "Removing " getName(lmd)
r = removeLinkModuleDescriptor(cf,s,t)

if (! null r) ack r
}
}

Report this to a Moderator Report this to a Moderator
 12-Jan-2004 08:30
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I just tried the same code and it worked.
I was logged in as Administrator - although I fail to see how this would make any difference.
A bit of a mystery this.

Trouble is, not knowing what causes LMDs to lose the plot make this very hard to test.


-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 12-Jan-2004 15:02
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

Tony,

You say you tried the same code and it worked. I am working with DOORs 5.2 and when I tried it I got the error message that the target name is blank. What version of DOORs are you working with? Did you have a target name that was blank when you tried to delete the LMD?
Report this to a Moderator Report this to a Moderator
 13-Jan-2004 22:00
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I notice that LMDs/LSPs keep the MODULE names stored. So if you rename or move a module that is referenced in an LMD, the LMD becomes useless. Useless, unless of course you rename or move it back.

I've never seen a blank LMD displayed in the interface before; I've just found the bad ones accidentally while writing DXL to save the LMDs and restore them in a new DB.

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