![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
In the dxl help file for attribute management look for key word system
example if (thisAttr.system) { ack "System attribute: cannot delete" } |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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/ |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Find attributes created by user
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.