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: Get a source object from incoming link?
Topic Summary: Get a source object from incoming link?
Created On: 5-Dec-2008 20:07
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.
 5-Dec-2008 20:07
User is offline View Users Profile Print this message


Kyle Clements

Posts: 6
Joined: 12-Sep-2008

How do I get a source object from an incoming link?

String inLinkName
Object o
for inLinkName in o <- "*" do{
Object otherObj = source(inLinkName)//<-----i want otherObj == source object from incoming link
} //(This does not work though)
Report this to a Moderator Report this to a Moderator
 5-Dec-2008 20:49
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

-

Edited: 6-Dec-2008 at 03:20 by ron lewis
Report this to a Moderator Report this to a Moderator
 6-Dec-2008 19:03
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Try this:


BTW, I think you need the source Module Open.
Report this to a Moderator Report this to a Moderator
 8-Dec-2008 08:20
User is offline View Users Profile Print this message


Marcel van der Laan

Posts: 15
Joined: 21-Sep-2007

Originally posted by: Lisa Carver

BTW, I think you need the source Module Open.


You do indeed need the source module open.
Just for completeness, you can do that as below. This opens for read-only mode (change as required) all modules that have links to this module if they are not already open. This allows access to the objects without cluttering up the UI.

I run this loop before my main code that checks all the links so I'm not constantly checking whether modules are already open. The next step would be to take note of which modules you opened in this way, so later on you can neatly close them again.

Regards,
Marcel

Edited: 8-Dec-2008 at 08:26 by Marcel van der Laan
Report this to a Moderator Report this to a Moderator
 8-Dec-2008 08:31
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

A second option is to use variables of type LinkRef for looping through incoming links. Then you can use the attached routine to get the source module name, and open it subsequently.

Regards,

Peter
Report this to a Moderator Report this to a Moderator
 9-Dec-2008 19:02
User is offline View Users Profile Print this message


Kyle Clements

Posts: 6
Joined: 12-Sep-2008

Thanks everyone, I'll look into these suggestions.
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.