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: Detecting DXL Attribute value
Topic Summary:
Created On: 13-Sep-2007 19:58
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.
 13-Sep-2007 19:58
User is offline View Users Profile Print this message


Rob Kohl

Posts: 22
Joined: 22-Aug-2006

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?

fficeffice" />> >

I am not a strong DXL user...

> >

> >

s = probeRichAttr_(o,"DXL for Verification Links",false){>>

   if (s!=null) {>>

Report this to a Moderator Report this to a Moderator
 14-Sep-2007 00:10
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.