![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: problems with dxl-layout Topic Summary: Created On: 3-Apr-2007 17:55 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Hi Thomas, you are looking for in links, so it makes no sense to try to open ModuleVersion sourceVer = targetVersion(l) ![]() Ron is really right! You need to use the for LinkRef in all (obj <- "*") do to get the in links at all. To get the source version you need to use sourceVersion(LinkRef) If you are using a for Link in obj <- "*" do loop the open module code is not executed at all! When the source module is not open, the body of loop will not be executed. If it is enough to get the absolute number of in linked Object you may use the function sourceAbsNo to get it without opening the source module. ![]() I hope that helps you a little bit ![]() Greetings Reik | |
![]() |
|
hi all,
i have a problem with my dxl-layout.
my following dxl checks, if an object has any incoming links. if yes, it displays the identifier of the source-object. if not, it displays its own identifier.
when both modules are open visible, everythings fine. if not, the dxl-layout always shows the current identifier no matter if object has in-links or not.
whats wrong??
thanks for help
thomas
|
|
![]() |
|
![]() |
|
You need to have the source of the link open. Here is an example how to open the source module from the help file.
Object o = current LinkRef lref ModName_ srcModRef for lref in o<-"*" do { srcModRef = source lref read(fullName(srcModRef), true) } Edited: 3-Apr-2007 at 18:02 by ron lewis |
|
![]() |
|
![]() |
|
hi ron,
thanks for help.
i already ensure that the source-mod is opend - invisible!
my problem is the different behaviour if the source-mod is opend visible or invisible.
as followed the code-snippet
Edited: 3-Apr-2007 at 18:14 by Thomas Langholz |
|
![]() |
|
![]() |
|
I'm not up to speed yet on all this source version stuff. But Ron is right, you cannot see any inlinks unless the source module is already open. InLink loops should be routinely precedded with in LinkRef loops that open the source modules; allowing the subsequent in link loop to actually see links.
Don't you want to use 'sourceVersion(l)' instead of 'targetVersion(i)'? This is probably your problem. The visible-invisible state of the module shouldn't matter. - Louie |
|
![]() |
|
![]() |
|
Hi Thomas,
you are looking for in links, so it makes no sense to try to open ModuleVersion sourceVer = targetVersion(l) ![]() Ron is really right! You need to use the for LinkRef in all (obj <- "*") do to get the in links at all. To get the source version you need to use sourceVersion(LinkRef) If you are using a for Link in obj <- "*" do loop the open module code is not executed at all! When the source module is not open, the body of loop will not be executed. If it is enough to get the absolute number of in linked Object you may use the function sourceAbsNo to get it without opening the source module. ![]() I hope that helps you a little bit ![]() Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Removed double posting ;-) because of server failure
Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany Edited: 4-Apr-2007 at 07:37 by Reik Schroeder |
|
![]() |
|
![]() |
|
alright thank you guys for your great help 8)
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
problems with dxl-layout
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.