![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The following example illustrates the Selection Manager Definition screen for the Software Development Corporation menu (refer to Selection Manager Menu Illustrated):
Task A Predefine a screenBefore creating the Selection 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:
• A screen table that has fields defined for each menu item. Each menu item field must have a title and be defined as:
• The screen table PFKEY_SPECS to contain the PF key specifications. 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 USERID, if you want the user’s TIBCO Object Service Broker user ID to appear on the menu.
• An optional screen table with a field called DATE, if you want to display the current date on the menu. 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 function 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. Type S beside the menu 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 Selection Manager menu option and press PF3. A blank definition screen appears.Task C Define the physical layoutThe following fields are used to define the physical layout of the menu. For valid values, press PF1.
Type the name of the predefined screen that determines the physical layout of the menu. Table containing menu fields To display the current date, type the name of a screen table that has a field named DATE. The field must be defined as semantic data type D, protected, and visible (Show must be set to Y). Type the name of the screen table that contains the USERID field, if required. This displays the TIBCO Object Service Broker user ID of the user.Task D Add menu items
Indicate whether the transaction displays the current time and the message OK at the bottom of the message. You do not have to display a message. Type the name of a screen field (and a literal text associated with it). This screen appears as an item on the menu and it must exist in the defined screen table.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |