![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The following example illustrates the Screen Manager menu definition screen for the Software Development Corporation menu (refer to Screen Manager Menu Illustrated):
Task A Predefine a screenBefore creating the Screen Manager menu, you must define a screen to be used with it. The predefined screen can have any layout and contain any titles as long as it contains the following:
Long enough for any expected user entry
• The screen table PFKEY_SPECS to contain the PF key specification. This screen table must have the fields ROW and COL defined to -2 and 1 respectively.
• The screen table SESSMGR_MSG to contain the message line. This screen table must have the fields ROW and COL defined to -1 and 1 respectively.
• An optional screen table with a field called DATE if you want to display the current date. This field must be defined as semantic type D, protected, and visible (Show must be set to Y).To use a date format other than the default format YYYY-MM-DD, you must define a display mask for it in the Display Mask field of the Screen Definer. Refer to Display Masks for more information on display masks.Refer to Chapter 2, Building a Screen for more information on defining a screen and Chapter 3, Defining Screen Tables for more information on defining a screen table.
Do not use PF18 from the Screen Definer to define your FCN keys or PF keys. The menu that you create with the Menu Definer uses the predefined PF keys 2, 3, and 12; you cannot define function keys for a menu.Task B Access the Menu Definer tool
1. From the EX execute rule option on the workbench, type DEFINE_MENU(menuname).If you do not include anything in the parentheses, a list of existing menus appears from which you can choose one to edit. Type S beside the menu you want to edit and press Enter. The appropriate definition screen for the chosen menu appears.When using DEFINE_MENU, TIBCO Object Service Broker must run in update mode (Browse = N).
2. If the menu is new, an option list of menu styles appears on the SELECT TYPE OF MENU TO BE DEFINED screen. Type S beside the Screen Manager menu option and press PF3. A blank definition screen appears.The following fields are used to define the physical layout of the Screen Manager menu. For valid values, press PF1:
Type the name of a predefined screen. This screen determines the physical layout of the menu. To display the current date, type the name of a screen table that has a field named DATE. The DATE field must be defined as semantic type D, protected, and visible (Show must be set to Y).To use a date format other than the default of YYYY-MM-DD, you must define a display mask for it in the Display Mask field of the Screen Definer. For more information on display masks, refer to Display Masks.Task D Add menu items
Indicate whether the transaction displays the current time and the message OK at the bottom of the menu. You do not have to display a message. Type a description of the menu item. This description appears as an item on the menu.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |