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: 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
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.
Answer This question was answered by Thomas Young, on Wednesday, June 27, 2007 1:21 AM

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."
 27-Jun-2007 00:42
User is offline View Users Profile Print this message


Thomas Young

Posts: 20
Joined: 12-Apr-2005

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!
Report this to a Moderator Report this to a Moderator
 27-Jun-2007 01:21
User is offline View Users Profile Print this message


Thomas Young

Posts: 20
Joined: 12-Apr-2005

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