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: multiple execution of layout dxl
Topic Summary:
Created On: 7-Jul-2004 14:57
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.
 7-Jul-2004 20:03
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Do you mean "LayOut DXL", inserted into a Column and must be saved in a view else its lost, or "Attribute DXL" defined when creating an attribute? You could "combine" them where a Layout also manages an actual (e.g. "Text") attribute via a direct save: obj."My Attr" = Results.

You should post the script, optionally abbreviating whatever parts you don't want us to see.

Both scripts presume the "obj" variable to mean the object in question. Don't declare "Object obj", do NOT set "obj = current"; which is probably your problem.

Following is a reasonable Layout snippette:

string RightNow = today()) "" // Granularity one day: "2004-July-07"
string ModOn = obj."Last Modified On" //" 2004-July-06"
if (ModOn == RightNow)
display "Modified Today"
else display ""

Attr DXL would use "obj.attrDXLName = "Modified Today".

Layout DXL is updated whenever the object is displayed, even when you simply scroll the module once. That's REAL annoying if the layout traverses links since it takes seconds to calculate each object. Attr DXL is updated exactly as it says in the manual, which turns out to be less often than you ..err.. I had supposed. The above example isn't good for Attr DXL since the values would tend to accumulate "Modified Today" until you refreshed attr DXL via the TOOLS menu.

- Louie
Report this to a Moderator Report this to a Moderator
 8-Jul-2004 15:44
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I don't understand what you are trying to do here, but I think you may be confused
about the difference between, and purpose, of attribute DXL and layout DXL.

First, layout DXL exists in a column and must be saved in a view.
The purpose of layout DXL is to display dynamic data in a column.
NEVER use layout DXL to update data.
And certainly never use layout DXL to open streams and stuff.
Layout DXL will run everytime the display changes - this is a lot!


Attribute DXL allows a DXL attribute to be automatically updated using other information.
NEVER use attribute DXL to update anything other than its own value.
As Louie says, DXL attributes get updated as described in the manual (I think).

Please explain what it is you are trying to do and we'll see what we can do.

PS.
Opening testModule crashes DOORS on my client.



-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 8-Jul-2004 at 15:45 by Tony Goodman
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.