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: Find attributes created by user
Topic Summary: Trouble finding the right script
Created On: 13-Oct-2008 13:31
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.
 13-Oct-2008 13:31
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

string objAttrName
for objAttrName in (current Module) do
print objAttrName "\n"


does anyone know how can I find the attributes created by the user or DOORS administrator.
Thes script above print all the attributes available.
Report this to a Moderator Report this to a Moderator
 13-Oct-2008 14:36
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

In the dxl help file for attribute management look for key word system

example if (thisAttr.system) {
ack "System attribute: cannot delete"
}
Report this to a Moderator Report this to a Moderator
 13-Oct-2008 16:46
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 120
Joined: 16-Jan-2008

Doug,

Ron's answer will get you system attributes, but not attributes created by users or administrators.

There are a couple of ways to do this, but probably the most accurate way would be to go through the module history and see when an attribute was created and who created it. You can then check to see if the user who created it was in the DOORS Admin group, or is a database manager, etc.

Kev

-------------------------
Kevin Murphy
http://www.baselinesinc.com
Report this to a Moderator Report this to a Moderator
 13-Oct-2008 17:11
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Kevin for those who have never heard of not,
Here is a working program that will print out user defined attributes.

AttrDef ad
Module m = current
for ad in m do
{ if (!ad.system) print ad.name "\n"
}

Edited: 13-Oct-2008 at 17:13 by ron lewis
Report this to a Moderator Report this to a Moderator
 13-Oct-2008 18:38
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

That worked but, I'm getting all these attributes.

Color Table
File Table
Font Table
Desired - Requirement
Rev Table
RTF Author
RTF DocFormat
RTF Header
RTF Info
RTF NonShpPict
RTF Operator
RTF ShpPict
RTF Subject
RTF Title
Desired - Section
Style Sheet

the script attached is helping me with what I want, but I'm not going to be able to select from a list of attributes just the one in the current view.

Module m = current
Column c
for c in m do {
print "<" (attrName c) ">\n"
}

I'm trying to create a GUI for the update of specs and requirements attributes and I want the user to select the attributes he/she want to update and after that the user will have GUI with all the attributes he/she selected ready for update.

Example:

-----------------------------
Requirement Text
-----------------------------
Attr1 Attr2 Attr3
1 True Cost
2 False Weight
3 True Reliable

Edited: 13-Oct-2008 at 18:39 by Douglas Perez
Report this to a Moderator Report this to a Moderator
 13-Oct-2008 18:46
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

DXL Help will get you forwards on this, look into attribute properties. you will want all object attributes which are defined by the user, i.e.

if ((ad.object) && (!ad.system))
{
// do stuff
}

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
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.