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: Default value in enumerated attribute Type
Topic Summary:
Created On: 19-Jan-2005 21:20
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.
 19-Jan-2005 21:20
User is offline View Users Profile Print this message


SRINIVAS GANDHAM

Posts: 17
Joined: 2-Sep-2004

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


Report this to a Moderator Report this to a Moderator
 19-Jan-2005 23:21
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 20-Jan-2005 22:39
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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