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: views and getting object values
Topic Summary:
Created On: 27-Jul-2007 09:18
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.
 27-Jul-2007 09:18
User is offline View Users Profile Print this message


Christian Rail

Posts: 2
Joined: 23-Jul-2007

Hallo,
I'm a real beginner on working with DOORS and DXL. So I only wants to execute DXL scripts over API to make DOORS return some data. A defined view of a module, which is linked with two other modules, is base for searching for objects with certain attributes. With my DXL script I can load all needed modules and the view. I also can read values in columns of objects of the module the view belongs to, but I can not read values from columns, which containing values from linked modules.
For example:

print object."Object Heading" "\n"

works fine, but

print object."column name of view"

throws an error -> object has no attribute "column name of view"

There must be an easy way to read values of a view. Or how can I follow the link to another modules? 
Thanks in advance...
Report this to a Moderator Report this to a Moderator
 27-Jul-2007 10:31
User is offline View Users Profile Print this message


Christian Rail

Posts: 2
Joined: 23-Jul-2007

I found a solution myself. It is pretty easy.

To get the looking for column:

for columnS in module do {
   if ((title c) == "name")
      column = columnS
}

and to get the value in this column for a certain object:

string s = text(column, object)
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.