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: Displaying if linked is removed DOORS v8.3
Topic Summary: Displaying if linked is removed
Created On: 2-Oct-2008 18:54
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.
 2-Oct-2008 18:54
User is offline View Users Profile Print this message


alejandro garcia

Posts: 14
Joined: 5-Sep-2008

When two objects are linked in two modules, when one is modified, the other can be flagged using suspect link analysis.

Is it possible to flag the object similarly if the link is deleted between the two objects?

I know that I can access link history in the module history, but I am looking for a column (dxl attribute) that can be added in one module, that would display whether a link was removed for each object.

Thanks in advance for your help
Report this to a Moderator Report this to a Moderator
 6-Oct-2008 07:10
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Here is the Layout DXL code for a column showing link history details for out-going links (based on code examples found in this forum):

--------------------------------------------------------------------------------------
Object o = obj
History h = null

void ShowHistory(History h)
{
HistoryType ht = h.type
int targetNum = 0

if ((ht == modifyLink) || (ht == createLink) || (ht == deleteLink))
{
targetNum = h.targetAbsNo
display h.author "\t" h.date "\t" stringOf(ht) " to: " targetNum ""
}
}

for h in o do ShowHistory(h)
--------------------------------------------------------------------------------------
For this to work your modules should have the Link history generation selected in Module Properties. The script shows history for link changes in the current module, not the history items in the baselines.

The trouble with link history is that for some reason the module names linked to or link module names used are only available for the Administrator. So you can try to access h.linkInitialName and h.targetInitialName but you will get only DXL errors if you are not running the code as Administrator.

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/

Edited: 6-Oct-2008 at 07:26 by Pekka Mäkinen
Report this to a Moderator Report this to a Moderator
 8-Oct-2008 19:26
User is offline View Users Profile Print this message


alejandro garcia

Posts: 14
Joined: 5-Sep-2008

Hi Pekka Mäkinen
Thanks for your help, I will check this code and I will let you know if this work for my case.

Regards
Alejandro Garcia
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.