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: Trouble getting started with DXL attributes
Topic Summary:
Created On: 22-Sep-2004 10:56
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.
 22-Sep-2004 10:56
User is offline View Users Profile Print this message


David Stacey

Posts: 4
Joined: 16-Dec-2003

Hi,

I am having trouble getting started with DXL attributes.

All I want to do is emulate the DXL Attribute Wizard in 7.1 (i.e create a DXL attribute to display several other attributes for each object). I then want to use this to allow me to 'dispaly' multiple attributes in a table.

Periodically I want to then update the DXL attribute.

Sorry it's a bit basic but I am stuck!

thanks
Dave
Report this to a Moderator Report this to a Moderator
 22-Sep-2004 16:20
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

For  layout dxl use code similar to following:

display "Here is a composit of attirbute"
display identifier obj
display number obj
display obj."Object Text"


For attribute dxl for displaying multiple attribute in a
DOORS cell create a attribute with code similar to:

obj.attrDXLName = "Here is a composit of attirbute
identifier  obj
number obj
obj.\"Object Text\"
"

Report this to a Moderator Report this to a Moderator
 22-Sep-2004 17:02
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I think you mean:
obj.attrDXLName = "Here is a composit of attirbute\n" //-
identifier obj "\n" //-
number obj "\n" //-
obj."Object Text"

The key features here are [1] variable "obj" is automatically declared and means "the object being updated" (not quite the same as the "current" object), and [2] attrDXLName means "the name of the DXL Attribute being updated".

I'm confused on when these get updated but believe its when you open the module or manually run Tools >Update Attribute DXL.

- Louie
Report this to a Moderator Report this to a Moderator
 24-Sep-2004 12:17
User is offline View Users Profile Print this message


David Stacey

Posts: 4
Joined: 16-Dec-2003

Ron and Louie,

Thanks for your help and I can now see how to use this in an Attribute DXL or Layout DXL column.

Where I was getting confused was I was trying to create and manipulate an Attribute DXL attribute from a standard DXL window.

This is still what I would really like to do - as I said the only reason I need to use an Attribute DXL attribute at all is that is appears to be the only way to display multiple attributes in a table.

So what I do now is:

i) Use the attribute dxl wizard (or the code you have supplied me) to create and define the attribute DXL attribute

ii) A standard DXL program that sets every table to display the DXL attribute and contains a 'refresh' button that automatically forces the refresh and display of the attribute DXL attribute. (The program also allows me to manipulate the values of the base attributes that effectively make up the DXL attribute).

The only slight problem with this is that for every new module I want to use this program on I have to use these two steps rather than have a single DXL program. If anyone knows how to combine the two that would be very useful.

regards,
Dave

Report this to a Moderator Report this to a Moderator
 24-Sep-2004 16:57
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Not sure exactly what you are saying, but are you concerned about having multiple modules with the same AttrDXL in them? Cloning the module should work. Also, you can edit the definition of the source attribute, browse for the DXL, use Current, then copy it. Then paste it into the new attribute in the new module.

Now I'm reading a little more carefully. Are you saying this DXL sets the Object Text of Table cells with a summary of other information? Then you've got a write-access problem since the Object Text can only be updated when in Edit or Share mode; wherease your AttrDXL CAN be updated in R only mode. Anyway, you can realistically write a post-module-open trigger that does this sort of update.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.