![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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) |
|
![]() |
|
![]() |
|
-
Edited: 6-Dec-2008 at 03:20 by ron lewis |
|
![]() |
|
![]() |
|
Try this:
BTW, I think you need the source Module Open. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thanks everyone, I'll look into these suggestions.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Get a source object from incoming link?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.