![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Default value in enumerated attribute Type Topic Summary: Created On: 19-Jan-2005 21:20 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I am trying to create an attribute which is of an enumerated attribute type. I somehow can not set the default value to the attribute. Please see the attached code. And when I run it.. i get the following run time error message: invalid default value 'No Run' for attribute 'Actual Result' of type 'ResultType' I even tried setting default("0") but get a similar error message. Babu |
|
![]() |
|
![]() |
|
Put the "default ("Not Run") phrase inside additional ..oops.. perenthesis. Manual says to do so; don't understand why.
... "ActualResult" (default("Not Run")) I'd also put the whole command inside parenthesis: create(object type ... (default("Not Run"))) - Louie Edited: 20-Jan-2005 at 22:36 by Louie Landale |
|
![]() |
|
![]() |
|
I think DXL parses right to left, so it parses the "default" command before it ever figures out this is part of a create object command.
Its good programming style, and mandatory for function calls with more than one parameter to put all the parameters inside parenthesis. So as my other reply (now) says, make it look like: create(object type ... (default ("Not Run"))) - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Default value in enumerated attribute Type
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.