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: Setting DOORS Database View Defaults for all Users
Topic Summary:
Created On: 17-Jul-2007 21:14
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 Louie Landale, on Wednesday, July 18, 2007 9:25 PM

Answer:
My original post was about loging into the server and user Windows Explorer to solve the problem, without invoking DOORS. That solution has the potential to adjust settings for all users. Tony provided some DXL that can be run from a client that adjusts the current DOORS user's settings. The problem would be to get each user to run such a DXL. I pointed out you theoretically could force folks, all folks, to run DXL by defining a database wide module-open trigger; and yes it means no action would be taken until the user opens a module. I digress... too bad there is no such thing as a database-login trigger (and also a logout trigger).

Another solution would be to modify every client's local DOORS install and insert code there; that being the c:\P F\Telelogic\DOORS\\lib\dxl... stuff; I've never liked a solution like that since its an administrative nightmare, and folks can simply bypass anything you force down their thoats like that.

- Louie
 17-Jul-2007 21:14
User is offline View Users Profile Print this message


Chris Annal

Posts: 36
Joined: 14-Dec-2005

As the DOORS database administrator, the most common issue encountered with new users is when they delete something and it "disappears" - they assume they have deleted the object completely from the database. Of course, if they had the checkbox for "Show Deleted Items" checked, they would see the item still exists and needs to be purged to get rid of it completely.
Similarly, I have users who are given the proper level of access to create and edit link modules, but if they don't have the checkbox for "Show Link Modules" checked, they can't even see the modules they just created.
A large number of user requests could be addressed if I just knew how to set these checkboxes for ALL users by default. Is there a command line switch that could be added to the icon at the user level, or (even better) a switch that could be set at the server level to address setting these checkboxes by default?

thanks,
Chris Annal
Report this to a Moderator Report this to a Moderator
 18-Jul-2007 01:01
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

No such switches. I don't think you can use configuration files to do it since thee is no such conf context associated with someone else's user.

But if you have access to the server and know where the DB is stored, you can manipute the files that contain each user's settings. Check out this file on your DOORS server:

...\v81-Local-Data\conf\u1000005.dir\DOORS+AF8-database+AF8-explorer\settings.txt

That file should contain these two lines:
ShowLinkModules
Yes

If you could write some VBA you could look for those two lines and if there, do nothing. If these two lines are there:
ShowLinkModules
No
Then replace them. If not, insert the above two lines.
- Louie
Report this to a Moderator Report this to a Moderator
 18-Jul-2007 10:19
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

This probably doesn't help you Chris because it requires access to the client.
But these may be of interest to "undocumented feature" addicts.

To set the display settings in the current session, set the following global boolean variables:
showDeletedItems
showFormalModules
showLinkModules
showDescriptiveModules
showFolders
showProjects

To make these settings persist between sessions they need to be written to conf files as Louie pointed out.
To do this, use:
void setYesNoEnvironmentOption(string setting, bool yesno)

The following string constants are defined for the settings:

SHOW_DELETED_SETTING_STRING
SHOW_FORMALS_SETTING_STRING
SHOW_LINKS_SETTING_STRING
SHOW_DESCS_SETTING_STRING
SHOW_FOLDERS_SETTING_STRING
SHOW_PROJECTS_SETTING_STRING

These are not perms, they are global variables, so they are at risk of being changed by Telelogic without notice.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 18-Jul-2007 18:50
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

That's VERY interesting.

You CAN get access to all the clients by defining a database-wide module-open trigger. That trigger would just run this code forcing everyone to view link modules or whatever.

- Louie
Report this to a Moderator Report this to a Moderator
 18-Jul-2007 19:17
User is offline View Users Profile Print this message


Chris Annal

Posts: 36
Joined: 14-Dec-2005

Hi Louie and Tony,

I think between the two of you I have a solution, but I'm not quite putting it all together. First you mention a file (...\v81-Local-Data\conf\u1000005.dir\DOORS+AF8-database+AF8-explorer\settings.txt) and Tony suggests that global boolean variables"...need to be written to conf files as Louie pointed out." Then the last remark is "You CAN get access to all the clients by defining a database-wide module-open trigger. That trigger would just run this code forcing everyone to view link modules or whatever."
 
Somehow I got lost between whether I'm looking on the server at the file first suggested or looking in my own "C:\Program Files\Telelogic\DOORS_8.1\lib\dxl\config" folder for certain files that may need to be updated. I've written triggers before, but never a database-wide module-open trigger. Would that mean that until the user actually opened his or her first module, the view settings I wanted would not be set as desired? I just want to make sure I'm looking at the right files and writing an appropriate trigger, if needed.

Thanks,
Chris


Report this to a Moderator Report this to a Moderator
 18-Jul-2007 20:25
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
My original post was about loging into the server and user Windows Explorer to solve the problem, without invoking DOORS. That solution has the potential to adjust settings for all users. Tony provided some DXL that can be run from a client that adjusts the current DOORS user's settings. The problem would be to get each user to run such a DXL. I pointed out you theoretically could force folks, all folks, to run DXL by defining a database wide module-open trigger; and yes it means no action would be taken until the user opens a module. I digress... too bad there is no such thing as a database-login trigger (and also a logout trigger).

Another solution would be to modify every client's local DOORS install and insert code there; that being the c:\P F\Telelogic\DOORS\\lib\dxl... stuff; I've never liked a solution like that since its an administrative nightmare, and folks can simply bypass anything you force down their thoats like that.

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