![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DXL Attribute Topic Summary: Created On: 28-Jul-2008 15:15 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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.... |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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.... |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
DXL Attribute
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.