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: Incoming Links
Topic Summary: Detecting Incoming Links with DXL
Created On: 23-May-2007 16:53
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 ron lewis, on Wednesday, May 23, 2007 6:56 PM

Answer:
You have to open Source modules with something like:

Object o = current
LinkRef lref
ModName_ srcModRef
for lref in o<-"*" do {
srcModRef = source lref
read(fullName(srcModRef), true)
}
 23-May-2007 16:53
User is offline View Users Profile Print this message


Sudip Das

Posts: 14
Joined: 2-May-2007

Is there a way to detect incoming links in a module with DXL when the linked modules aren't open?  I created an attribute script to view the object text of the incoming links, but the information will only appear if the linked modules are open. 

I am able to detect outgoing links with DXL without any problems.   Telelogic pointed out this issue in their DXL manual, but I wanted to know if anybody found a workaround.

Report this to a Moderator Report this to a Moderator
 23-May-2007 18:08
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Answer Answer
You have to open Source modules with something like:

Object o = current
LinkRef lref
ModName_ srcModRef
for lref in o<-"*" do {
srcModRef = source lref
read(fullName(srcModRef), true)
}
Report this to a Moderator Report this to a Moderator
 24-May-2007 22:56
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You can detect the LinkRef of incoming links (as Lewis' snippette shows), and that's how you find and open the source module.

Once you have the LinkRef, you can deduce the module's name and the linked object (sourceAbsNo), and can display that roudimentary information without opening the source module. Since you don't want to open the module, I'd have the attribute DXL detect if the module is open, if so display what you want and if not just display the module name and object number.

- Louie
Report this to a Moderator Report this to a Moderator
 25-May-2007 09:09
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi @all,

if you have links, that are comming from baselines you need to add an all ...
And it's better to work with ModuleVersion sourceVersion lref:

If you need only an unique Identifier I would recommend Louie's proposal where you could use
(versionString (sourceVersion lref))" ("(sourceAbsNo lref)")"

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 25-May-2007 09:23
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

You won't ever see any links FROM a baseline.
Links with baselines do not work properly outside of baseline sets.


Create links from A (current) to B (1.0).
Links are displayed correctly and real links are created to the baseline.

However, when I baseline A, the links from A to B(1.0) remain in place, and they are also "echoed" in the new baseline A(1.0). Echoed links have a hollow link indicator arrow.

The echoed links can be seen from A(1.0), but from B(1.0) the incoming echoed links are not visible. Echoed links can be followed from a baseline but they cannot be followed back to a baseline, only to the current version.

This makes linking to baselines useless unless you are using baseline sets which are IMHO rubbish.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.