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: Resetting a default value of attribute enumeration.
Topic Summary: setting default value attribute
Created On: 6-Sep-2005 10:32
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.
 6-Sep-2005 10:32
User is offline View Users Profile Print this message


martin allman

Posts: 74
Joined: 25-Jul-2005

My module contains testcase objects, each object has a attribute called "Test Status".   This is a enumeration that takes the values shown below.  This is associated with a column within the view.  The option appears as a drop down within the cell,  the status can be changed from the default of "Not checked" to "Reviewed" or "checked".  If my test module object changes in any way I would like the status of that object to default back to "Not checked" ie to react dynamically to changes within the module, my question is can this be done within doors and how do you do it.

Thanks for any guidance Martin
const string enums[] = { "Reviewed", "checked", "Not checked" }

Report this to a Moderator Report this to a Moderator
 6-Sep-2005 15:43
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

You could setup a trigger to fire when any attribute is changed. Below is an example of a setting a trigger that will fire when the Object Text is changed.


Project px = current
string pName = fullName(px)
Module m = current
string xName = name(m)
string dxl = "Object o = current Object"
dxl = dxl "\n" "o.\"Test Status\" = \"Not checked\" "
Trigger attr1 = trigger ("ModObjTxt", project ->pName -> module -> xName -> attribute -> "Object Text",post, save, 10, dxl)

-------------------------
Cliff Bly
Report this to a Moderator Report this to a Moderator
 7-Sep-2005 18:04
User is offline View Users Profile Print this message


martin allman

Posts: 74
Joined: 25-Jul-2005

Thank you Cliff, that looks exactly what I am after, do I need to save this as a DXL script then do I place it within the project folder and how is this done, through explorer or can I do it within DOORs

A big thank you for your help
Martin
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.