![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: attribute reset to default Topic Summary: Created On: 30-Jun-2004 16:10 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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/ |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
attribute reset to default
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.