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: DXL Attribute
Topic Summary:
Created On: 28-Jul-2008 15:15
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.
 28-Jul-2008 15:15
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

Hello

I had created a DXL attribute whose base type is enumeration and the script in the DXL attribute is dependent on another attribute whose base type is also enumeration .....

so when i click the close button of the attribute viewer after writing the DXL Script i could see my DOORS is being closed along with the formal module ...



For your reference..


DXL Attribute Created is ABC.... whose base type is enumeration with values YES and NO

Attribute existing is DEF.... whose base type is enumeration with values HIGH and LOW


The DXL attribute code of ABC is

string str = obj."DEF"

if(str == "HIGH")
obj.attrDXLName = "YES"
else if(str == "LOW")
obj.attrDXLName = "NO"



And if the DXL attribute ABC is being created with type integer , string ,text.... i could not face the problem of DOORS being closed..


Can any one help me in resolving this issue....
Report this to a Moderator Report this to a Moderator
 28-Jul-2008 15:21
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

I'm unsure what your issue is. Your issue is the module closing when closing the attribute editor? Or something wrong with the DXL Attribute. I've had many DXL attributes and not have not had an issue with the module closing when it shouldn't.

As far as your code all I'd say is append the empty string to the end of the "str" assignment like this:

string str = obj."DEF"""

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 28-Jul-2008 22:42
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I don't see why you would want your DXL attribute to be of type Enumeration. Make it type string and it should work.

- Louie
Report this to a Moderator Report this to a Moderator
 29-Jul-2008 14:34
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

Hello Louie..

If my DXL attribute is of type string or text it is working but not in the case if the DXL attribute base type is enumeration.......

Can you help me in this....
Report this to a Moderator Report this to a Moderator
 29-Jul-2008 21:36
User is offline View Users Profile Print this message


Bob Mathis

Posts: 32
Joined: 12-Apr-2005

To find if a value is in the enumeration you use isMember. If I remember correctly it looks like this:

if (isMember((current Object)."DEF", "HIGH")) {
Do Something Here
}else if (isMember((current Object)."DEF", "LOW")) {
Do Something Else
}

Bob

-------------------------
Bob Mathis
Robert.S.MATHIS@odot.state.or.us
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.