![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Show User that changed an attribute Topic Summary: Is there a script that will show the user that changed an attribute? Created On: 17-Jan-2007 01:55 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: I should have known to try it for myself before posting! Here's a script that works for me: | |
![]() |
|
I'm trying to create a validation view. |
|
![]() |
|
![]() |
|
Try something like this in a layout DXL column:
|
|
![]() |
|
![]() |
|
Thanks for your help - but.. I'm not sure what went wrong
I put this in the dxl area History h string lastApprovedBy = "" for h in obj do { if h.attrName == "ReqValidation Status" && h.newValue "" == "Approved" then lastApprovedBy = h.author } display lastApprovedBy -R-W- DXL: <Line:4> wrong history type createObject for attribute name -R-W- DXL: <Line:4> wrong history type createObject for attribute name |
|
![]() |
|
![]() |
|
Adding the line:
if h.type != modifyObject then continue before the line that begins "if h.attrName ==" will fix that bug. |
|
![]() |
|
![]() |
|
No more error but no results either
![]() I've tried creating the attribute with type string and with type user. Once its created the type choice is grayed out so I don't know if it makes a difference. Neither one worked. Do appreciate your time though - Thanks |
|
![]() |
|
![]() |
|
I should have known to try it for myself before posting! Here's a script that works for me:
|
|
![]() |
|
![]() |
|
Finally, I got it. All this time I was trying to create it as an attribute, then display the attribute. When I finally put your code in as a column display dxl script it worked perfectly. Thanks so much for your help. They'll love this!
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Show User that changed an attribute
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.