Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 8 Creating a Selection Manager Menu : Defining the Physical Layout

Defining the Physical Layout
The following tasks are required to define the physical layout of the Selection Manager menu:
1.
2.
3.
4.
These tasks are described in detail in the sections below.
Example
The following example illustrates the Selection Manager Definition screen for the Software Development Corporation menu (refer to Selection Manager Menu Illustrated):

 
Define Menu: SEL_EMPLOYEE Unit: USR40
Command ===>
Screen to be used: WEEKLY_REPORT
Table containing menu fields: SELECTION
Optional table with field named “DATE”: TITLE
Optional table with field named “USERID”: TITLE
-----------------------------------------------------------------------------
Menu Items
Time & Ok: Y Action Search Browse
Field Name Rule New/Call/Menu S/I/L Y/N
------------------------- ---------------- - - -
EXPENSES WEEKLY_REPORT_RU N L N
STATUS WEEKLY_STATUS_RU N L N
PFKEYS: 3=SAVE 12=CANCEL 4=+LINE 16=-LINE 22=DEL 6=TEST 9=EDHELP 2=DOC

 
 
Task A Predefine a screen
Before 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:
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
To access the Menu Definer to create a Selection Manager menu, complete the following tasks:
1.
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.
The appropriate menu definition screen appears.
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 layout
The 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.
Optional table with field named “DATE”
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).
Optional table with field named “USERID”
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
The following fields are used to add menu items to the menu. For valid values, use PF1.
 
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
Copyright © TIBCO Software Inc. All Rights Reserved