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: Finding name desc fields for module linking in
Topic Summary: Finding name desc fields for module linking in
Created On: 9-Aug-2006 09:06
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.
 9-Aug-2006 09:06
User is offline View Users Profile Print this message


martin allman

Posts: 74
Joined: 25-Jul-2005

I am trying to retrieve information for a module(call it B) that links into my current module (call it A).
  Typically I would like to
retrieve information about module B, such as its module 'name' and 'description'. 
This is what I have so far--I run this from module A, Im not sure where to go from here-thanks for any help  


Module m = current
Object o
for o in m do
{

  Link l
  for l in o <- "*" do
  {

 
????????????????


  }


}

Report this to a Moderator Report this to a Moderator
 9-Aug-2006 10:20
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

Hi,
In your case

moduleB = fullName source l

will give you the name of the Module B

Regards,
Abhishek Biswas
Report this to a Moderator Report this to a Moderator
 9-Aug-2006 11:26
User is offline View Users Profile Print this message


martin allman

Posts: 74
Joined: 25-Jul-2005

Thank you Subrojyoti

But how would I retrieve the module 'description' field?

Report this to a Moderator Report this to a Moderator
 9-Aug-2006 11:53
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

In DXL Help:

description

Declaration
string description({Item i|Folder f|Project p|Module m|ModName_ modRef})
Operation Returns the description of the item specified by the argument.

Example print description current Module

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 9-Aug-2006 14:05
User is offline View Users Profile Print this message


martin allman

Posts: 74
Joined: 25-Jul-2005

Thank you guys for your help much appreciated
Report this to a Moderator Report this to a Moderator
 9-Aug-2006 16:36
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Another thing to watch out for is that the for link in object loop only gets Links from modules that are open. This means that if the sources of the links aren't already open you have to first go through and load them:

for all sources
Syntax
for srcModName in (Object tgtObject) <- (string
linkModName) do {
...
}


where srcModName is a string variable of the unqualified name of the source

---or---

for all source references
Syntax
for srcModRef in (Object tgtObject) <- (string
linkModName) do {
...
}


where srcModRef is a variable of type ModName_

---or---

for all link references
Syntax
for linkRef in (Object tgtObject) <- (string
linkModName) do {
...
}


where linkRef is a variable of type LinkRef

See DXL help under "Finding Links" for more.

Chris
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.