![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Disabling "Generate Support Request..." for users only Topic Summary: Created On: 3-Mar-2008 20:09 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Went on a little bit of hunt here today as this came up in another thread. Apparenlty Telelogic said disabling the "Generate Support Request..." menu option for users isn't possible.
Here' my solution, and I know there are those that don't like to modify the DOORS standard files, but so far this is the only option that I could come up with. First you'll need to create a include file for mapping functions. In here you'll want a mapping function that looks something like this: int isAdminGroup () { if (checkAdminStatus ()) { return menuAvailable_ } else { return menuUnavailable_ } }//End isAdminGroup. Where checkAdminStatus is short DXL script that returns true or false depending on your organizations determination of what an Adminstrator is. Where I'm at we look at the Administrator account and anyone in the Admins for DOORS group. You can put this file anywhere you want. In the \lib\dxl\config\baseWindowMenu.inc file, you'll need to search for this line (In mine it was around line 380, but I have other changes in this file) createItem(alwaysOn, "Generate Support Request...",'G', null, modKeyCtrl, null, null, "Send an email to Telelogic Support.", "", doorsHome "/lib/dxl/standard/help/generateSupportRequest.dxl") Change alwaysOn to the name of your mapping function, in my case isAdminGroup so the line looks like this: createItem(isAdminGroup, "Generate Support Request...",'G', null, modKeyCtrl, null, null, "Send an email to Telelogic Support.", "", doorsHome "/lib/dxl/standard/help/generateSupportRequest.dxl") Save the file. Next you'll need to open the \lib\dxl\config\helpmenu.inc file and make the same change as above. Save the file. Finally open the \lib\dxl\init.dxl file and find this line: #include <config/mappingFns.inc> Directly after this line include the file with your mapping function, like so: //***** MY CHANGE ***** #include <config/startupFiles.dxl> //***** END MY CHANGE ***** If your script to check if the current user is an admin is written correctly, the "Generate Support Request..." should be grayed out for all users excpet Admins (as defined by the checkAdmin script). ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com Edited: 3-Mar-2008 at 20:10 by Scott Boisvert |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.