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: Attributes for Object in a module
Topic Summary: All the attributes are not displayed.
Created On: 12-Dec-2006 18:07
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.
 12-Dec-2006 18:07
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

I wrote the attached code to find all the attribute definitions for object in a module. The list does not contain Object Text, Object Heading and Object Sub Heading. Am I missing something?

Report this to a Moderator Report this to a Moderator
 12-Dec-2006 18:52
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

I'm doing:

string attributeName
for attributeName in currentModule do {
   attributeList[attributecnt++] = attributeName  (I'm putting them in an array for use in a DB list)
}

And I'm getting Object Heading and Object Text.  Do you mean Object Short Text instead of Object Sub Heading?  Because thats the third one I'm getting with the word "Object" as the first word.

You shouldn't need to do:
 
print (atr.name) "\n"

Just do:

print atr"\n"

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Edited: 12-Dec-2006 at 18:53 by David Pechacek
Report this to a Moderator Report this to a Moderator
 12-Dec-2006 18:57
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Object Text, Object Heading etc are defined by DOORS, thus the if (atr.system) is true, look for e.g. in the DXL Help for "Attribute definition properties"

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 12-Dec-2006 22:06
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Thanks for the response. Yes, it is Object Short Text instead of Object Short Heading. I modified the code as attached and this works.
Even though the Object Text, Object Short Text and Object Heading are listed as attributes for Object, somehow they were getting filtered by the previous code.
print atr "\n" is not working. I am getting an error while running the code.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.