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