![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Question on DXL Attributes Topic Summary: Refresh order Created On: 29-Jul-2008 14:58 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
When you load a module, the value of DXL Attributes are calculated yes?
Is there an order to this? Like does it go through the list of attributes in alphabetical order or order that they're created? ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Hi David,
I did a quick test. Created a module with the DXL attributes (Attr1, Attr2 and Attr3) each did the same (print attrDXLName "\n"). Then created a single object in the module (note: creating an object did not force a refresh of attribute values) With the attributes not showing in the loaded view, the attributes did not get refreshed at all. Opening the module did not force the attributes to refresh. Only adding them to the current view cased them to refresh. So, I created a view with the three attributes showing and set it to be default for the module. Clicking on any of the column headers forced a refresh and also, opening the module forced a refresh. The refresh was always in the order that the attributes appear from left to right in the view. Moving the columns around meant that they refreshed in a different order. This could be seen in the output of the DXL window. (Attr1, Attr2, Attr3 became Attr3, Attr2, Attr1) So I believe the answer is that DXL attributes are refreshed only when their values are accessed. In the above case, they are accessed by displaying them in a view. For views, the attributes are refreshed in the order they appear from left to right. I have to admit, I was very surprised that the attributes did not refresh on opening the module. But I guess there is no point if the value is not being used anywhere, so might as well wait until the value is needed. Paul |
|
![]() |
|
![]() |
|
Yes I remember that DXL Attributes don't refresh if not shown in the view. My issue isn't left to right though but top to bottom. I'm trying to have an automated metrics module with a count for each object (each object represents a module, each column a different count of things in that module) with the last object being a total of all previous ones. I have the logic for the code I'm just wondering in what order are the values calculated cause I need the individual module counts to happen in order to do the total counts.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Question on DXL Attributes
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.