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: Delete Links
Topic Summary: Need an easy way to delete links.
Created On: 29-Jan-2007 21:15
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.
 29-Jan-2007 21:15
User is offline View Users Profile Print this message


Tracy Monteith

Posts: 33
Joined: 21-Dec-2005

I need an easy way to delete incoming links that doesn't require opening up the source module. Is there a DXL that says "I don't care what's connected to me. Delte the link."?
Report this to a Moderator Report this to a Moderator
 30-Jan-2007 12:40
User is offline View Users Profile Print this message


Paul Worrall

Posts: 87
Joined: 30-Sep-2003

As links are stored in their source Objects it is always necessary to open the source Module and have Modify access to the source Object before you can delete the Link. The following script will do this for every in-Link in in every displayed Object in the current Module, provided you have Modify access to the source (use with care!):

Edited: 30-Jan-2007 at 12:43 by Paul Worrall
Report this to a Moderator Report this to a Moderator
 31-Jan-2007 07:55
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

You can also go a bit further and do a check to see if you have access to delete the link first: //Delete any out-links bool delOK = canDelete(outLink) if (delOK){ delete outLink }

-------------------------
Andrew Tagg
Thales Air Systems, Melbourne
Australia.
andrew.tagg@thalesatm.com
Report this to a Moderator Report this to a Moderator
 1-Feb-2007 01:33
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Deleting incoming links is routinely done for objects you wish to delete since you cannot delete an object with incoming links. After you delete such incoming links, be SURE to [1] set the source module current. [2] flush deletions [3] save the source. Then delete the original target object.

Failing to do that will result in the target object being deleted, but since you failed to make the delete links permanant, the source still links to the now deleted target object. That's probably not a desirable situation.

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