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 Executes on Every Screen Refresh
Topic Summary: Attribute DXL Refreshes When it Should Not
Created On: 22-Sep-2004 18:17
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.
Answer This question was answered by Richard Starr, on Thursday, September 23, 2004 8:07 PM

Answer:
Louie,

You were absolutely right about setting obj.attrDXLName to something other than null (""). In desparation last night, I set all "" entries to contain a space " ", and the problem went away. Then backed off until I found out which one was causing it. I ended up setting the value to "-1" so I could get the result I wanted, and now it is fine.

There were several attributes that fell through the code and were reset to "". In that condition, DOORS seems to want to recalculate them every time you resize or move the window, click on a different object, move another window over the top of that window, etc.
I don't think I understand why it would do that? But, I am happy I know how to avoid it now.

Thanks also for the other tips.

Richard
 22-Sep-2004 18:17
User is offline View Users Profile Print this message


Richard Starr

Posts: 10
Joined: 6-Nov-2002

I wonder whether anyone out there can help with a problem. The code below executes fine as a DXL attribute and does what I need it to do. The problem is that every time any screen refresh takes place in DOORS, such as just selecting an object or resizing the window, it appears to recalculate all the values. From what I read, Attribute DXL should only recalculate when the module is opened or you select Refresh DXL Attributes from the Tools menu. This constant recalculation makes the module difficult to work with. This Attribute DXL script is used to display up to 12 columns, each with 32 objects.
Is there something in this script that could cause the Attribute DXL to behave this way?
Thanks in advance for any suggestions.
Richard
L-3 Communications Integrated Systems
Greenville, TX
Report this to a Moderator Report this to a Moderator
 23-Sep-2004 15:52
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Oops. Forgot to mention that AttrDXL also recalculates when the current value is null. If you change your last line to obj.attrDXLName = " " (a space) it should drastically reduce the recalculation. (Or do you want to set it to "0.0"?)

- Louie

Nit-picks: [1] after your entire loop perhaps you should add: "if (isDeleted(o)) continue"; thus bypassing deleted objects in the other module. [2] using o."Object Text" gets the RAW text only, specifically not bold etc formatting and embedded OLE diagrams. That's probably what you want but maybe not.
Report this to a Moderator Report this to a Moderator
 23-Sep-2004 20:02
User is offline View Users Profile Print this message


Richard Starr

Posts: 10
Joined: 6-Nov-2002

Answer Answer
Louie,

You were absolutely right about setting obj.attrDXLName to something other than null (""). In desparation last night, I set all "" entries to contain a space " ", and the problem went away. Then backed off until I found out which one was causing it. I ended up setting the value to "-1" so I could get the result I wanted, and now it is fine.

There were several attributes that fell through the code and were reset to "". In that condition, DOORS seems to want to recalculate them every time you resize or move the window, click on a different object, move another window over the top of that window, etc.
I don't think I understand why it would do that? But, I am happy I know how to avoid it now.

Thanks also for the other tips.

Richard
Report this to a Moderator Report this to a Moderator
 23-Sep-2004 20:06
User is offline View Users Profile Print this message


Richard Starr

Posts: 10
Joined: 6-Nov-2002

Oops. I also forgot to mention that early on we had tried commenting out the line

obj.attrDXLName = ""

but that didn't help. So apparently if you don't set the value of the object at all, it has the same effect as setting it to null. I guess it has to be set to something!

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