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: Link Deletion problems
Topic Summary:
Created On: 19-Jul-2006 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.
Answer This question was answered by Louie Landale, on Thursday, July 20, 2006 10:14 PM

Answer:
try "flushDeletions()" after deleting the links. Then also "save(mod)". Then recreate then links, followed again with "flushDeletions()" and "save(mod)".

- Louie
 19-Jul-2006 21:15
User is offline View Users Profile Print this message


Marlin Wegner

Posts: 20
Joined: 2-Jun-2006

I am looking to delete outlinks to a single module, that generally are discovered through a filter.   Then, nearly immediately, recreate links to the same module though the links may or may not be the same that were deleted.  It is all based on an attribute set of values.

What I am experiencing is that the deletes of the links appear to occur, then the creation of links appears to occur.  When the script exits all links have been removed, though the newly created links are not.     If the deletes are executed and the script is allowed to end, the deletes are realized.    If I then manually run the creation part of the script, the correct links are created.    

The problem is that the deletion of the original links appears to not be "commited" until after the script has come to an end, thus superceding the creation.   

I am sure it is something that I have done inappropriately in the deletion portion.      Can someone point me in a direction as to what is the appropriate chain of events that should occur to realize the link deletions before proceeding with the creation.

I have recently inherited the Doors admin duties as our admin resigned.   So a lot of this is new and exciting territory.  
Report this to a Moderator Report this to a Moderator
 19-Jul-2006 23:33
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
try "flushDeletions()" after deleting the links. Then also "save(mod)". Then recreate then links, followed again with "flushDeletions()" and "save(mod)".

- Louie
Report this to a Moderator Report this to a Moderator
 20-Jul-2006 17:00
User is offline View Users Profile Print this message


Marlin Wegner

Posts: 20
Joined: 2-Jun-2006

Thanks for the quick answer.   Works great.   I just want to be sure on which mod to save.   The link module or the module from which the links are created/deleted.

Again, thanks a million!
Report this to a Moderator Report this to a Moderator
 20-Jul-2006 21:42
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Not sure how it all works, but to create a link you need write access to the source OBJECT and only need Read access to the link module. You would therefore save the source (formal) module. If ever you start dealing with link attributes, then the attributes need to be created in the Link module, but when you set their values you are modifying the source module.

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