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


Chapter 7 Creating a Screen Manager Menu : Defining the Physical Layout

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

 
Define Menu: SCR_EMPLOYEE Unit: USR40
Command ===>
Screen to be used: WEEKLY_REP
Scrolling table containing fields "TITLE" and "VALUE": FIELD
Optional table with field named "DATE": TITLE_1
-----------------------------------------------------------------------------
Menu Items
Time & Ok: Y Action Search Browse
Title Rule New/Call/Menu S/I/L Y/N
------------------------- ---------------- - - -
Create an expense report M
Create a status report WEEKLY_STA_R C 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 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
To access the Menu Definer to create a Screen 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 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.
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 Screen Manager menu option and press PF3. A blank definition screen appears.
Task C Define the physical layout of the menu
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.
Scrolling table containing fields TITLE and VALUE
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 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
The following fields are used to add menu items to the menu. For valid values, press PF1.
 
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.

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