Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to create a submenu with DXL

I'm trying to create a menu structure in a formal Module in DOORS 9.7 (Classic) by using DXL. 

I have created a .inc file "Menu.inc", that I have placed in the ..\lib\dxl\config\formalfiles directory. 
It looks like this:

createMenu(alwaysOn, "Top Menu", null, null)

   createMenu(alwaysOn, "Sub_Menu_IDX", null, "path to dxl directory")
   //This DXL directory contains a .hlp and a .idx file

   createMenu(menuMapping, "Sub_Menu_DXL", null, "path to dxl file")
   //How this DXL file looks is shown below

   createItem(itemMapping,
"Create Module",
null,
null,
modKeyCtrl,
null,
null,
"Create module",
"",
"path to dxl file")
end menu

The mapping function used in the 3:d createMenu is defined in a .inc file located in ..\lib\dxl\startupfiles.
It looks like this:

int itemMapping()
{
return (menuAvailable_)
}

The DXL file containing the Submenu looks like this:

createItem(alwaysOn,
"SUB",
null,
null,
modKeyCtrl,
null,
null,
"Create module",
"",
strMainPath "C:\DOORS_OEW\DoorsHome\lib\dxl\addins\DoorStep Menus\createModule.dxl")

This will generate the menu "Top Menu" in the formal module.
When clicking on the "Top Menu" the following menu choices appear:
  • Sub_Menu_IDX
  • Create Module

I.e, the menu "Sub_Menu_DXL" does NOT appear as a submenu.
What am I doing wrong here?

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,735
× 6

Question asked: 2 days ago

Question was seen: 44 times

Last updated: 2 days ago

Confirmation Cancel Confirm