![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 ? |
|
![]() |
|
![]() |
|
Because I want the attribute to be read only. And it will be changed via user functions...
|
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.