![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: loadDirectory etc Topic Summary: Created On: 14-Feb-2008 22:54 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Playing with user-defined Properties and therefor with loadDirectory, saveUserRecord etc. Am getting exception violations but that's another story. Just wondering what these commands really do. If I 'loadUserRecord' for every user in the database, is that the same thing as 'loadDirectory'? If I 'saveUserRecord' does it go back to the database, or must I also 'saveDirectory' to make that happen?
Looking inside doors.exe, I see 'forceLoadDirectory()' which oddly results in 'undefined variable' when I use it; and I see 'loadDirectory(bool)', and was wondering if anybody knows what that does. - Louie |
|
![]() |
|
![]() |
|
Louie,
Sorry, It's been a while since I've been on the forum. I have code written to change user data. I do use loadDirectory(), loadUserRecord(), setUser() , saveUserRecord() , and saveDirectory() loadDirectory() ensures that you load in the latest user/group changes since opening your session of DOORS. Someone else may have changed the directory since you opened your DOORS session. loadUserRecord - which gets the information in the User structure to be used with setUser() setUser() is what I used to change the user information. saveUserRecord - I assume commits the user record for your session but the saveDirectory commits it back to the server. As the documentation suggests I do a saveDirectory() after processing all user records to commit the changes. Hope this helps. |
|
![]() |
|
![]() |
|
Perhaps give your script a try commenting out the loadDirectory() and saveDirectory(), preserving the loadUserRecord and saveUserRecord. I think, and I do mean 'think', you'll find your script still works and changes are permanant.
If so, the loadDirectory and saveDirectory may be for group membership stuff. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
loadDirectory etc
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.