I'd like to disable the 'User' menu that comes pre-configured with DOORS

I have a situation where I have my own custom code that I want deployed to all the clients, this I can do no problem, the problem is that I don't want the users to be able to even see the 'User' module level menu that comes pre-configured with DOORS. Has anyone been able to successfully do this? If so what are the steps I need to follow? I do have access to all the clients which I imagine would be an important thing to have.

In earlier versions of DOORS I've been able to just rename the following folder:

C:\Program Files (x86)\IBM\Rational\DOORS\9.3\lib\dxl\addins\user

And it would stop appearing, but now in DOORS 9.3 and 9.4 (maybe earlier) every time I start DOORS it puts the User folder right back.
DOORSWizard - Tue Jul 17 08:10:18 EDT 2012

Re: I'd like to disable the 'User' menu that comes pre-configured with DOORS
kbmurphy - Tue Jul 17 12:27:57 EDT 2012

Use a custom icon, and set the -a switch to a network location that exists but doesn't have DXL. Heck, I haven't tested this, but the switch -a "C:\" may even work.

Re: I'd like to disable the 'User' menu that comes pre-configured with DOORS
Richard_Hesketh - Wed Jul 18 11:06:12 EDT 2012

kbmurphy - Tue Jul 17 12:27:57 EDT 2012
Use a custom icon, and set the -a switch to a network location that exists but doesn't have DXL. Heck, I haven't tested this, but the switch -a "C:\" may even work.

The user menu is in <DOORSHOME>\lib\dxl\addins - the -a switch allows specification of additional locations for module addins, but does not exclude DXL in this default path. The only solution I know of to this is to move/delete <DOORSHOME>\lib\dxl\addins\user or otherwise disable the folder (by removing or renaming user.idx, for example).

Re: I'd like to disable the 'User' menu that comes pre-configured with DOORS
llandale - Wed Jul 18 13:16:56 EDT 2012

Go into the "user" folder and rename the "user.hlp" or "user.idx" file; maybe "user.idx.kill". This will cause that folder to no longer be a suitable addins folder.

-Louie

Re: I'd like to disable the 'User' menu that comes pre-configured with DOORS
kbmurphy - Wed Jul 18 13:41:31 EDT 2012

Richard_Hesketh - Wed Jul 18 11:06:12 EDT 2012
The user menu is in <DOORSHOME>\lib\dxl\addins - the -a switch allows specification of additional locations for module addins, but does not exclude DXL in this default path. The only solution I know of to this is to move/delete <DOORSHOME>\lib\dxl\addins\user or otherwise disable the folder (by removing or renaming user.idx, for example).

Guess I've just learned to ignore the User menu after many years, then.

Re: I'd like to disable the 'User' menu that comes pre-configured with DOORS
llandale - Wed Jul 18 13:56:31 EDT 2012

kbmurphy - Tue Jul 17 12:27:57 EDT 2012
Use a custom icon, and set the -a switch to a network location that exists but doesn't have DXL. Heck, I haven't tested this, but the switch -a "C:\" may even work.

I don't think there is any way to suppress the following as the first default location for addins:
  • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl
That's the folder with the "users" sub-folder.

How would all that DXL work that uses relative include files?
  • #include <standard/access/accessData.inc>

-Louie

Hmmm, I suppose you could corrupt variable "DOORSHOME" but that will trigger all sorts of problems.

Re: I'd like to disable the 'User' menu that comes pre-configured with DOORS
kbmurphy - Wed Jul 18 14:01:11 EDT 2012

llandale - Wed Jul 18 13:16:56 EDT 2012
Go into the "user" folder and rename the "user.hlp" or "user.idx" file; maybe "user.idx.kill". This will cause that folder to no longer be a suitable addins folder.

-Louie

Hey Louie or anyone else...

One suggestion you had got me thinking. What if you want to add a folder to the browseable DXL library, but not the dropdown menu? Is this possible, especially if it's pointing to the network and not on a local folder?

Re: I'd like to disable the 'User' menu that comes pre-configured with DOORS
llandale - Wed Jul 18 16:54:01 EDT 2012

kbmurphy - Wed Jul 18 14:01:11 EDT 2012
Hey Louie or anyone else...

One suggestion you had got me thinking. What if you want to add a folder to the browseable DXL library, but not the dropdown menu? Is this possible, especially if it's pointing to the network and not on a local folder?

I really hate it when folks get ME thinking... lol Yes, I've wondered about such low-priority inconvenient to execute scripts.

I did "invent" the "linkmodaddins" variable which displays scripts suitable for Link Modules. To "link.dxl" I added:
  • createAddinPathMenus((NLS_("DOORSLINKMODADDINS")))
So now I wonder if you create variable "browseaddins" and then found references to
  • createItem browseDXLItem
(formal.dxl), then insert your own Browser taking advantage of the browseaddins variable.
Tried to suppress a DXL in the menu by editing the *.idx file:
  • NameFile _ _
figuring to identify the file but tell it not to display anything. DOORS complained about a corrupt file.

Anyway, just discovered these non-overrideable folder locations:
  • For purposes of generating Menus
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl\addins
  • For purposes of browsing DXL
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl\addins
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl\standard
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl\example
  • For purposes of resolving Include references
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl
I see the *.idx file is not needed (and is ignored if it exists) for browsing purposes.

I also see I don't have it quite right, as the "addins" folder itself is not in the Browse menu; whereas the "standard" folder is.

So you can add browseable folders not in a pulldown if you add them to the "standard" or "example" folder. Not much help.

I see that the "Browse" menu is calculated the 1st time it is used per session, whereas the Module Menues are recalculated each time you open a module.

-Louie

I never "browse" anyway. Maybe I'll write a pull-down "BrowseForObscureDXL.dxl" file.

Re: I'd like to disable the 'User' menu that comes pre-configured with DOORS
Mathias Mamsch - Thu Aug 02 04:52:03 EDT 2012

llandale - Wed Jul 18 16:54:01 EDT 2012
I really hate it when folks get ME thinking... lol Yes, I've wondered about such low-priority inconvenient to execute scripts.

I did "invent" the "linkmodaddins" variable which displays scripts suitable for Link Modules. To "link.dxl" I added:

  • createAddinPathMenus((NLS_("DOORSLINKMODADDINS")))
So now I wonder if you create variable "browseaddins" and then found references to
  • createItem browseDXLItem
(formal.dxl), then insert your own Browser taking advantage of the browseaddins variable.
Tried to suppress a DXL in the menu by editing the *.idx file:
  • NameFile _ _
figuring to identify the file but tell it not to display anything. DOORS complained about a corrupt file.

Anyway, just discovered these non-overrideable folder locations:
  • For purposes of generating Menus
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl\addins
  • For purposes of browsing DXL
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl\addins
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl\standard
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl\example
  • For purposes of resolving Include references
    • C:\Program Files\IBM\Rational\DOORS\9.3\lib\dxl
I see the *.idx file is not needed (and is ignored if it exists) for browsing purposes.

I also see I don't have it quite right, as the "addins" folder itself is not in the Browse menu; whereas the "standard" folder is.

So you can add browseable folders not in a pulldown if you add them to the "standard" or "example" folder. Not much help.

I see that the "Browse" menu is calculated the 1st time it is used per session, whereas the Module Menues are recalculated each time you open a module.

-Louie

I never "browse" anyway. Maybe I'll write a pull-down "BrowseForObscureDXL.dxl" file.

I think that the browse dialog is really helpful for providing the users a set of DXL layout columns, that they can insert in their views at their convenience. You can use the 'layoutaddins' variable to define a menu location, which will not appear as a menu but turn up in the browse dialog of the add layout column window (and only there I think).

Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS