Menus

Creating Menus

DXL files placed in the following directories are automatically run by DOORS to create menus. So, to create a new menu on the database explorer window, add a DXL file to the baseWindowMenuFiles directory.

doorshome /lib/dxl/config/baseWindowMenuFiles
doorshome /lib/dxl/config/descfiles
doorshome /lib/dxl/config/descPopupFiles
doorshome /lib/dxl/config/explorerListPopupFiles
doorshome /lib/dxl/config/explorerTreePopupFiles
doorshome /lib/dxl/config/formalFiles
doorshome /lib/dxl/config/formalPopupFiles
doorshome /lib/dxl/config/linkFiles
doorshome /lib/dxl/config/linkPopupFiles

From DOORS 8 you can also add scripts to the following to add menu options to the formal module column header popup menu.

doorshome /lib/dxl/config/formalheaderPopupFiles

The DXL file must contain valid menu-creation DXL, of which the following is an example:

void createWebMenu()
{
	createMenu(alwaysOn, "web", null, null  )

	createItem(alwaysOn,
		"Build Website ...",
		null,
		null,
		modKeyCtrl,
		null,
		null,
		"Create web pages from current project",
		"",
		doorsHome "/lib/dxl/web/webCreator.dxl")

	end menu
}

createWebMenu()

Create Menus from a Network Directory

This utility allows you to create menus by automatically running DXL from a network directory. This allows menu creation DXL to be deployed and updated on a network drive without updating every client.

Copy the source code and save to a file called runNetworkDir.dxl, then copy this file to any of the menu directories listed above, according to where you want the extra menus to appear. Edit the network directory path at the bottom of the file to specify the location on the network of the directory containing DXL files to build the extra menus.

View Source code

Create Menus from a Network File

This utility allows you to create menus by automatically running DXL from a network file. This allows menu creation DXL to be deployed and updated on a network drive without updating every client.

Copy the source code and save to a file called runNetworkFile.dxl, then copy this file to any of the menu directories listed above, according to where you want the extra menus to appear. Edit the MY_DXL_FILE file path constant to specify the location on the network of the dxl file to build the extra menus.

View Source code