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: loadDirectory etc
Topic Summary:
Created On: 14-Feb-2008 22:54
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.
 14-Feb-2008 22:54
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 10-Mar-2008 18:52
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 58
Joined: 17-Oct-2006

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.
Report this to a Moderator Report this to a Moderator
 10-Mar-2008 22:31
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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