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: How do I give DXL Attributes an Initial Value?
Topic Summary:
Created On: 18-Dec-2003 18:07
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.
 18-Dec-2003 18:07
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

DOORS Version = 5.2

I have created a DXL Attribute called: DefectStatus
which is an enumeration with the possible values: "Resolved","Unresolved","Deferred"

I want the Initial Value of DefectStatus to be: "Unresolved"

WARNING this code will crash DOORS:

This is the DXL CODE that I thought made sense:

if ((obj."DefectStatus" "" != "Resolved") && (obj."DefectStatus" "" != "Deferred"))
{
obj."DefectStatus" = "Unresolved"
}


ARRRGGHH....What the heck is going on ?
Report this to a Moderator Report this to a Moderator
 18-Dec-2003 18:47
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

Because I want the attribute to be read only. And it will be changed via user functions...
Report this to a Moderator Report this to a Moderator
 18-Dec-2003 20:27
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

I guess the real question is: Why the above code causes DOORS to crash?

So, if someone could figure that one out that would be great.

Examples of state transitions:

When a user creates a defect record I want to initialize it to unresolved. Which they are allowed to do in the formal module itself.

When another user fixes the defect I will provide a dialog box to be filled out by the user and I will proceed to change the defect status to either "Resolved" or "Deferred". I provide a dialog box for the front end and do not want the users to change the status when they are looking at the formal module itself.
Report this to a Moderator Report this to a Moderator
 18-Dec-2003 21:39
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Gallion is right. By what you've described you just want an enumerated attribute with "Unresolved" as the default value.

Or you could have two attributes: [Attr1]: Enumerated, users don't know about it; its controlled via Dialog. [Attr2]: Text, Attr DXL, simply <"obj.attrDXLName = obj."Attr1">.

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