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: Question on DXL Attributes
Topic Summary: Refresh order
Created On: 29-Jul-2008 14: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.
 29-Jul-2008 14:58
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 29-Jul-2008 16:25
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

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
Report this to a Moderator Report this to a Moderator
 29-Jul-2008 19:27
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
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.