HOWTO:Components/Create a new menu

From Remain Software
Jump to navigation Jump to search

How To create & connect a new Menu

There are two different types of Menu definitions: the UIM panel Menu and the DSPF type Menu based on a display file definition and message descriptions in a message file. The special type of source attribute which you need for creating both Menu types, is not a critical obstacle for a correct definition procedure of the Menu objects.

The UIM type Menu procedure

The UIM panel Menu can only be created by compiling a source based on the UIM tag code and with the attribute type MENU. After editing and saving your source code in a source file member with type MENU, you can create the Menu object using the common command CTRMNU. Next you can use one of the common methods to load the new menu object together with its related source member at one time in the TD/OMS object registration.

The DSPF type Menu procedure

Creating a DSPF type menu needs definition of a display file based on a source with attribute type MNUCMD and definition of message descriptions in a message file. Generally you will use the SDA development tool for building and creating this type of Menu. Working in that way your major concern may be to load the set of matching definitions in the TD/OMS registration.

Start the procedure using the New Object function and define objects without source and of type *MENU, *MSGF and display file. The New Object function allows object specification in TD/OMS, while the object does not really exist on your system. Next build and create using for example the SDA tool, the DSPF menu on the system, and be sure that the resulting objects have been created in your development environment (library). Finally return to the menu-related object definitions in TD/OMS, and start for any object an refilling job (STRFOF or Object API). Now The objects will really exist, and their related source and their mutual relations will be loaded in TD/OMS.