![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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."?
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» General Discussion
»
Delete Links
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.