![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Getting a LinkRef from a Link Topic Summary: Created On: 8-Mar-2005 20:11 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: | |
![]() |
|
I am trying to fix some dxl that used to work when all of the database was a flat structure, but now that some specs are in one folder and other specs in the same project are in other folders, and they all are at varying levels away from the project's root level, it does not work. Specifically with the following situation:
Link l LinkRef lref for l in o<-"*" do { // stuff } but for some of the operations, like getting the module path (fullName) it does not work unless I have the LinkRef instead of the Link. It would be nice to be able to do somy type of a lref = l Here is a synopsis of the issues: (1) Basically I have two loops, one is: for modname in o<-"*" do { // open sources of incoming links ModName_ srcModNm = module(modname) // srcModNm is always null, because it doesn't have a fullname and the module is in a // different branch of the folder structure (up one, other branch, and down a few levels) // I cannot figure out where to legally stick a fullName or a read that will get me the long path name or srcModNm... and the other issue is (2) for l in o<-"*" do { // count incoming links modname = fullName(module l) // incoming link module name // but the above line is null and gets nothing, even if there IS an inlink, // because the link source is in a different branch of the tree Now if I instead do the following:\ for lref in o<-"*" do { modname = fullName(module lref) // incoming link module name // this works, modname is not null, but some of my later operations // in the loop must have an "l", not an "lref" to work (source statements, etc) I should probably note that because of the way the operations perform some of their steps, I cannot separate out the 2nd loop into two loops (an "l" loop and an "lref" loop). What I need to figure out is how to get an "lref" from an "l" or vice versa. Any suggestions? Edited: 9-Mar-2005 at 13:14 by Kirk Walker |
|
![]() |
|
![]() |
|
Edited: 9-Mar-2005 at 13:15 by Kirk Walker |
|
![]() |
|
![]() |
|
Just starting to look at DXL examples and running across similiar problems. In my case I need to chase out-links and when I reach a certain document, chase the in-links for 2 levels searching for specific document and text.
Testing of some others code ran across similiar issues so I would be interested in hearing of any successes. James.Steuwe@maf.nasa.gov James_Steuwe@hotmail.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Getting a LinkRef from a Link
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.