![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: get name of attribute dxl attribute Topic Summary: Created On: 8-Aug-2007 18:34 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Saved by the bell, or in this case, saved by Louie! I thought I had to assign a value to attrDXLName, but it automatically takes on its own attribute name as a string, which is also the name of the enumeration value I need to search for.... problem solved, and I had it right all along :-) | |
![]() |
|
Is there a way, within attribute dxl, to capture the actual name of the attribute?
Something like: obj.attrDXLName = name of this attribute The module with my source links has an enumeration attribute with 11 values, and my target module has 11 dxl attributes that correspond to the names of the enumeration values. For each attribute, I pull in information from the linked module that matches the enumeration value. The code for each dxl attribute is identical except for the line mentioned above, where I have to manually insert the attribute. If I could somehow capture the attribute name, in the same way that I can use "name current Module" to get a module name, it would save me lots of grief. |
|
![]() |
|
![]() |
|
Hi Al,
the answer to your question is in your question: attrDXLName is the name of attribute as string, so you can use something like this: obj.attrDXLName = otherObject.attrDXLName"" Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Yes, constant 'attrDXLName' has the name of the attribute DXL when run from inside attr DXL, and is null in all other contexts.
I think you are doing something like this: oOther = linked object if (isMember(oOther.NameEnumAttr, attrDXLName)) { // oOther is of interest to this attribute DXL obj.attrDXLName = gathered info about oOther } - Louie Try running the following from a DXL windows, you'll get no error but won't get any results either: print "<" attrDXLName ">\n" |
|
![]() |
|
![]() |
|
Saved by the bell, or in this case, saved by Louie!
I thought I had to assign a value to attrDXLName, but it automatically takes on its own attribute name as a string, which is also the name of the enumeration value I need to search for.... problem solved, and I had it right all along :-)
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
get name of attribute dxl attribute
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.