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: Utility to list al varibles in a module
Topic Summary:
Created On: 12-Feb-2007 13:48
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-Feb-2007 13:48
User is offline View Users Profile Print this message


Edwin Buisman

Posts: 38
Joined: 12-Aug-2004

Hello,

I am looking for a way to get insight in the variables used within a DOORS database. Also the values of multi-select variables and module variables, not the actual values. Does anyboduy have a utility to acchieve this?

Best regards,

Edwin Buisman.
Report this to a Moderator Report this to a Moderator
 12-Feb-2007 16:12
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Do you mean get the attributes of a module?

If so this will get you the name of every module attribute in a module:

string attr
for attr in attributes(current Module) do {
    print attr "\n"
}

To get all the object attributes in a module:

string attr
for attr in current Module do {
    print attr "\n"
}

I don't believe there is a way to get the values of multi-valued attributes.  You can check to see if something is in a mult-valued attribute using isMember().



-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 13-Feb-2007 01:30
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You can use the 'for ad in mod do' function to get a 'handle' on the AttrDefs. From that you can get a handle on the 'AttrType' of that Def, via at = ad.type. From that you can determine if its Enumerated and if it us query on the legal enumerated values of that type.

The 'isMember' function is used to find out if an object has an enumerated selected, it doesn't tell you which enumerated values are legal.

- Louie
Report this to a Moderator Report this to a Moderator
 15-Mar-2007 18:30
User is offline View Users Profile Print this message


Rakesh Bantu

Posts: 10
Joined: 16-Mar-2006

How can we get the values of the attributes along with the names

Rakesh
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.