![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Reset an attribute to default Topic Summary: Created On: 27-May-2005 08:29 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
Does anyone have a script that can reset an attribute of type enumeration to default when the object text is changed? I have an attribute called Validation Status of type Enumeration (undefinied (default), Rejected Reservation and Accepted). When someone changes the object text that attribute should be reset to default. (or maybe when the object get suspect, the attribute Validation Status is reset to default). |
|
![]() |
|
![]() |
|
"Setting to Default" is accomplished by setting it empty: obj.NameAttr = "".
Don't have a script. But you have at least two chioces [1] Write a Post Attribute Save trigger for attribute "Object Text". The trigger simply sets the Enum for the current Object empty. [2] Write an on-demand script, perhaps run daily, that looks at the latest History for object Text and for your Attribute, and if Object Text is more recently changed then set your attribute empty. [3] Write an Attribute DXL that accomplishes the task of [2]. - Louie |
|
![]() |
|
![]() |
|
Thanks for your answer Louie, but I am not very familiar with DXL scripts so I don't know if I can manage to write one as You suggested. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Reset an attribute to default
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.