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: using DXL attributes
Topic Summary:
Created On: 16-Jan-2007 16:10
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.
 16-Jan-2007 16:10
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

Hello DXLiens,
does anybody know if there is a possibility of inserting a DXL Attribute in each Module of a certain Folder? For example I have a AttrDXLScript and an already inserted Attribute "bla" of Type text in each Module of a folder. How can I get the  AttrDXLScript into the Attribute "bla" in each Module of a folder?
Can I use a script to insert a script into the attribute?

best regards,
Mussie
Report this to a Moderator Report this to a Moderator
 16-Jan-2007 16:44
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

The following example should get you started.

AttrDef ad = null

ad = find(current Module, "Comments")

ad = modify(ad, setDXL, "obj.attrDXLName = \"hello\"")

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 17-Jan-2007 15:32
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

AttrDef ad = null

ad = find(current Module, "Comments")

ad = modify(ad, setDXL, "obj.attrDXLName = \"hello\"")


is it possible to put in dxl file instead of "obj.attrDXLName = \"hello\""
for example!

ad = modify(ad, setDXL, "impact.dxl")


Report this to a Moderator Report this to a Moderator
 18-Jan-2007 08:09
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

would it work with importRTF?? cheers Mussie
Report this to a Moderator Report this to a Moderator
 19-Jan-2007 12:39
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

hello DXLiens, I still can't find the solution for my problem! this one works even for several modules of a folder! AttrDef ad = null ad = find(m, "LinksAttr") print ad.name"\n" ad = modify(ad, setDXL, "obj.attrDXLName = \"hello\"") But if I want something more then just hello as a value what can I do how can I get following code converted to one string or value of obj.attrDXLName like "hello"?? --------------------------------------------------------------------------------------------- Link l int count = 0 setCacheState_ on for l in obj->"*" do count++ // count outgoing links setCacheState_ off Module m AttrDef ad AttrType at m = module obj ad = find(m,attrDXLName) at = ad.type if (at.type == attrInteger) obj.attrDXLName = count if ((at.type == attrString) || (at.type == attrText)) obj.attrDXLName = count "" --------------------------------------------------------------------------------------------- whereas count is supossed to be the value of LinksAttr! Best Regards, Mussie
Report this to a Moderator Report this to a Moderator
 19-Jan-2007 12:43
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

sorry this one you can read better!

hello DXLiens,

I still can't find the solution for my problem!
this one works even for several modules of a folder!

AttrDef ad = null;
ad = find(m, "LinksAttr");
print ad.name"\n";
ad = modify(ad, setDXL, "obj.attrDXLName = \"hello\"") ;

But if I want something more then just hello as a value what can I do how can I get attached code converted to one string or value of obj.attrDXLName like "hello"?? 

Best Regards, Mussie

Report this to a Moderator Report this to a Moderator
 19-Jan-2007 14:09
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

As follows!

Remember to escape double quotes and backslashes in the string.
Also, you must remember to insert newlines or semicolons in order to separate the expressions.


My preferred method is to build the DXL up in a buffer, one line at a time, but the result is the same.

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

Edited: 19-Jan-2007 at 14:09 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 19-Jan-2007 18:39
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

If your DXL attribute contains an include file, then those folks that don't have access to the include file's location will get lots of rude DXL errors whenever they open the module. Its practically impossible to guarantee everyone can see a file, even on a company shared network. But if you DID, you would do this:
ad = modify(ad, setDXL, "#include <"//Server/File/Impact.dxl")

But you really need to plow through all the modules in a folder. Someone somewhere as a 'CopyAtts.dxl' somewhere, I don't think I can share mine.

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