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 vs DXL Layout
Topic Summary:
Created On: 19-Mar-2008 13:38
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.
 19-Mar-2008 13:38
User is offline View Users Profile Print this message


Brandi McLeod

Posts: 9
Joined: 12-Mar-2008

I've recently tried to add an attribute that uses a DXL script to my current view. I add a new attribute, name it and check the box for DXL attribute. I enter in the DXL script after clicking "New" and then after finishing up the new attribute, I create a new column based on this attribute. However, when I add the column, it appears to be updating the column with the attribute as if it's a DXL layout, where it refreshes everytime DOORS is refreshed. From my understanding, the DXL attribute is only supposed to refresh when you first open DOORS and when you go to Tools -> Refresh DXL Attributes. The DXL Layout however is supposed to refresh as DOORS refreshes. I have not checked the box for DXL Layout, but adding this attribute treats it as if it were one. What am I doing wrong?
Report this to a Moderator Report this to a Moderator
 19-Mar-2008 14:03
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Here is a little oops, "I forgot that" from the help file.

If the code resets the attribute to the null string, recalculation occurs on the next access. Just setting the value to the null string is not sufficient to invoke recalculation. The attribute value must be accessed after the reset to null, for a recalculation to take place.
Report this to a Moderator Report this to a Moderator
 19-Mar-2008 14:33
User is offline View Users Profile Print this message


rashaad hampton

Posts: 6
Joined: 2-Nov-2007

Ron....
I am not sure if I understand your reply. From my understanding, a DXL attribute should only refreshed when the Column is added to the view or when explicitly called to refresh.
Are you saying the DXL in the back ground runs dynamically if the code is written a certain way?

Brandi,
What does your DXL script do?

I am experiencing the same problem. I am not sure how to properly create a DXL Attribute.
Report this to a Moderator Report this to a Moderator
 19-Mar-2008 14:37
User is offline View Users Profile Print this message


Brandi McLeod

Posts: 9
Joined: 12-Mar-2008

The script searches for a string in the Text column and if the string is found, puts an X in the associating column. All of the objects in the column are intially balnk and then get populated as it runs through the script.
Report this to a Moderator Report this to a Moderator
 19-Mar-2008 14:51
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

What is put into the attribute if text is not found?


Look at https://forum.telelogic.com/customer/doors/messageview.cfm?catid=17&threadid=5214&highlight_key=y&keyword1=attribute%20dxl
Report this to a Moderator Report this to a Moderator
 19-Mar-2008 15:10
User is offline View Users Profile Print this message


Brandi McLeod

Posts: 9
Joined: 12-Mar-2008

There was nothing put into the object if the string wasn't found. So I modified the code to put a space there. Thanks Ron.
Report this to a Moderator Report this to a Moderator
 19-Mar-2008 16:12
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The DXL attribute will also recalculate when its value is null and its accessed again; and its accessed again each time its displayed. To prevent that annoying recalculation you should set the value to perhaps a space instead of null. That is, the bottom of your attribute DXLs should routinely look something like this:

string Results = results of the script
if (null Results)
obj.attrDXLName = " " // Space instead of null
else obj.attrDXLName = Results

If the attr dxl is used only as Display, then there's no problem. If the attr dxl value is used by other attr dxl or other scripts, then those scripts will probably need to look for a space instead of null values.

- Louie

Edited: 19-Mar-2008 at 16:15 by Louie Landale
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.