IBM Support

DOORS disabling a group with DXL has no effect

Troubleshooting


Problem

After you run the following DXL codes to disable a group, that group is still enabled.
Group g = find("Group1")
bool gDisabled
setGroup(g, disabled, true)
gDisabled = g.disabled
print "Disabled=" gDisabled ""

Symptom

When you check the group in DOORS client, it is still enabled (Disable group option is NOT checked).
image-20200214154649-1
Note:
When a group is disabled, you would see a green cross in front of the group in "Manage Users - DOORS" screen.
image-20200214155031-2
In addition, the "Disable group" option is checked in "Edit Group - DOORS" screen.
image-20200214155054-3

Cause

After you make modification to users and groups with DXL, saveDirectory() is NOT called to save the modification.

Resolving The Problem

Add saveDirectory() at the end of the DXL codes.
Group g = find("Group1")
bool gDisabled
setGroup(g, disabled, true)
gDisabled = g.disabled
print "Disabled=" gDisabled ""
saveDirectory()

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSKR2T","label":"IBM Engineering Requirements Management DOORS"},"Component":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
21 July 2020

UID

ibm12438007