![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Unchecking "Edit DXL" ability in user properties Topic Summary: How to do this using DXL? Created On: 27-Jun-2007 00:42 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Found the trick: pragma runLim,0 User u string uname bool canedit int ucount = 0 for u in userList do { ucount++ uname = u.name err = setUser(u, mayEditDXL, false) // This line does it if (!null err) print err "\n" saveUserRecord(u) // And this line applies it canedit = u.mayEditDXL print uname "'s setting is now " canedit "\n" } infoBox ucount " users' Edit DXL ability turned off." | |
![]() |
|
The DXL manual (8.1) shows the boolean perm (mayEditDXL) for indicating whether a user can edit DXL, but it does not show a way to change that setting in a user's properties. In a small script looping thru users in userList, I tried this line:
err = setUser(u, mayEditDXL, false) ...but no dice. The "Edit DXL" checkbox remains checked for the users. No error was given so I might be on the right track. When trying this I am logged in as Administrator, which seems necessary as the checkbox is grayed-out otherwise. Would like to have a working script do this, because the database admin requesting this has 800+ users, all with that checkbox checked! |
|
![]() |
|
![]() |
|
Found the trick:
pragma runLim,0 User u string uname bool canedit int ucount = 0 for u in userList do { ucount++ uname = u.name err = setUser(u, mayEditDXL, false) // This line does it if (!null err) print err "\n" saveUserRecord(u) // And this line applies it canedit = u.mayEditDXL print uname "'s setting is now " canedit "\n" } infoBox ucount " users' Edit DXL ability turned off." |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.