![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Detecting DXL Attribute value Topic Summary: Created On: 13-Sep-2007 19:58 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I would like to detect the value in a DXL attribute so I can increment a counter but the following lines to detect if the DXL attribute is not empty doesn't seem to be working. Can anyone tell me what is wrong? ffice I am not a strong DXL user... s = probeRichAttr_(o,"DXL for Verification Links",false){ if (s!=null) { |
|
![]() |
|
![]() |
|
FIrst off, an Attribute DXL will re-calculate repeatedly if the current value is null. Its thus a good idea to have your Attr DXL do this at the bottom in order to prevent thrashing:
Results = calculate the desired results in string format if (null Results) obj.attrDXLName = " " // Set it to a space instead of null else obj.attrDXLName = Results Given that, it doesn't make sense to check for a null value, rather you would check for space. And if you really WERE checking for null, you are probably checking for 'invisible'; that is, does the result of the attr dxl appear empty. If so, don't bother with 'rich text' just get the raw text from the attribute: use probeAttr_. i.e. try this: s = probeAttr_(o, "MyAttr") if (null s or s == " ") - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Detecting DXL Attribute value
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.