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: Reset an attribute to default
Topic Summary:
Created On: 27-May-2005 08:29
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.
 27-May-2005 08:29
User is offline View Users Profile Print this message


Haiat Ebraham

Posts: 9
Joined: 25-Feb-2005

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

Report this to a Moderator Report this to a Moderator
 27-May-2005 17:50
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

"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
Report this to a Moderator Report this to a Moderator
 3-Jun-2005 09:41
User is offline View Users Profile Print this message


Haiat Ebraham

Posts: 9
Joined: 25-Feb-2005

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.

/Haiat

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.