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: Copying DXL attributes...
Topic Summary: How to copy DXL attributes values?
Created On: 20-Aug-2008 12:16
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.
 20-Aug-2008 12:16
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

I created a dxl attribute to display the absolute number and the module name and path. I'm using the Copy objects tool and i want to be able to freeze the value from the DXL attribute in the source module and be able to copy it into the target module. I know that if i create the links i'm going to be able to get info from the source module, but since I'm not sure that the user is going to create links between the modules I wanted to do it without links.

Any way a dxl attribute can be converted into text type. I'm looking for something like in excel when you have a formula you can copy the values.

Thanks.
Report this to a Moderator Report this to a Moderator
 20-Aug-2008 12:40
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

You want to copy the DXL attribute values to another module?

Without any DXL script:

- first copy internally the attribute values from your DXL attribute to a normal text attribute by using the Copy Attributes tool (Tools / Functions / Copy Attributes)
- and then copy the text attribute along with other selected attributes with the Copy Objects tool

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 21-Aug-2008 18:27
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

How about creating the DXL attribute using a script and then copy them in the same module to later copy them to another module?


This is my sutation;

I have 5 old requirement modules that are going to be use to create one big requirement module. The person is asking me to look for a way to create two attributes in the 5 modules and then copy part of those modules with the attributes.
I created the attributes and copy them in the same module to maintain the value from the DXL attribute script. Now i want to automate this process, but I don't have many resources that show me how to create a dxl attribute.

I got this one,
AttrDef ad = create object type "String" attribute "Source Module" //-
dxl "string s = fullName(current Module)\nobj.attrDXLName = s"

but I need this one also,
AttrDef ad = create object type "Integer" attribute "Source Absno" //-
dxl "obj.attrDXLName = obj."Absolute Number" "" "
this one is failing but i don't know why.
Report this to a Moderator Report this to a Moderator
 21-Aug-2008 20:13
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The quotes around 'Absolute Number' need to be escaped to be part of the string; as do the two double quotes that are side-by-side. That would make it look like:

dxl "obj.attrDXLName = obj.\"Absolute Number\" \"\""

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