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: attribute reset to default
Topic Summary:
Created On: 30-Jun-2004 16:10
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.
Answer This question was answered by Pekka Mäkinen, on Thursday, July 1, 2004 10:20 AM

Answer:
I have not used this myself, in DOORS 6 help ("Attribute definition properties")
there is a defval property

Default property Extracts
defval the default value for the attribute definition; for correct operation, always assign the result to a variable of the correct type for the attribute

This example uses the property defval for a default value of type string:

AttrDef ad = find(current Module, "Created Thru")
string def = ad.defval
print def // prints Manual Input
 1-Jul-2004 09:44
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Answer Answer
I have not used this myself, in DOORS 6 help ("Attribute definition properties")
there is a defval property

Default property Extracts
defval the default value for the attribute definition; for correct operation, always assign the result to a variable of the correct type for the attribute

This example uses the property defval for a default value of type string:

AttrDef ad = find(current Module, "Created Thru")
string def = ad.defval
print def // prints Manual Input

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 1-Jul-2004 16:17
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

No. Setting the obj.NameAttr to the default value defined for that attribute does NOT set it to default, it sets it explicitely to that value. You won't notice the difference right away nor when you run Value=obj.NameAttr. But you WILL notice the difference if you redefine the default value for that attribute since this object will retain that old value; and you will notice a difference when you run "hasSpecificValue" for that obj.NameAttr.

Set the default value by setting the obj.NameAttr to null. This makes it DISPLAY the default value (or inHerited value).

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