Previous Topic: Step 3:  Specify Basic InformationNext Topic: Step 5:  Further Define the Application Responses


Step 4: Define Application Response and Function Relationships

The Response/Function List screen is the main ADSA screen. You can reach this screen by pressing [PF5] from the General Options screen or by entering 2 at the Screen prompt on the Main Menu.

Sample screen

                             Response/Function List            Page  1 of  1  Application name:  XXXAPPL    Version:    1  Select    Response    Assigned      Select    Function             Program/   (/)      name        key            (/)      name/type(1,2,3)*    Dialog name    _       ________     _____          _       ________ / _         ________    _       ________     _____          _       ________ / _         ________    _       ________     _____          _       ________ / _         ________    _       ________     _____          _       ________ / _         ________    _       ________     _____          _       ________ / _         ________    _       ________     _____          _       ________ / _         ________                                         * Type: 1. Dialog  2. Program  3. Menu  Enter  F1=Help  F3=Exit  F4=Prev  F5=Next  F7=Bkwd  F8=Fwd

Each response in an application defines a path from one function to another. You are going to name the responses and functions and identify the key associated with each response and the dialog (if any) associated with each function as well as the function type.

Department application responses and functions

Below are the responses and functions invoked in the sample Department application. Each response is associated with a control key and invokes a function. A function can be associated with a dialog.

Response name

Key

Function name

Function type

Dialog name

 

BACK

CLEAR

POP

 

 

Takes the user from ADDDEP, MODDEP, or DELDEP back to the DEPTMENU function.

EXIT

PF9

QUIT

 

 

Exits the user from the appli- cation; EXIT is avail- able from any function in the Depart- ment appli- cation

ADD

PF4

ADDDEP

Dialog

XXXDADD

Takes the user from the DEPTMENU function to the ADDDEP function, which allows the use to add a new depart- ment record.

MOD

PF5

MODDEP

Dialog

XXXDUPD

Takes the user from DEPTMENU to the MODDEP function, which allows the user to modify an existing depart- ment record.

DEL

PF6

DELDEP

Dialog

XXXDUPD

Takes the user from DEPTMENU to the DELDEP function, which allows the user to delete an existing depart- ment record.

 

 

DEPTMENU

Menu

 

Provides a menu

Entering Department application responses and functions

You name each response and function on the Response/Function List screen as shown below. Responses and dialog, program, and menu functions need further definition on subsequent screens. Select each response and function requiring further definition by entering a nonblank (nonunderscore) character under Select as you go along.

Note: System functions, such as pop and quit are defined by CA ADS and do not require further definition on the part of the developer.

                             Response/Function List            Page  1 of  1  Application name:  XXXAPPL    Version:    1  Select    Response    Assigned      Select    Function             Program/   (/)      name        key            (/)      name/type(1,2,3)*    Dialog name    /       back____     clear          /       pop  _____ / _        ________    /       exit____     pf9__          /       quit  ____ / _        ________    /       add_____     pf4__          /       addep___ / 1             .xxxdad    /       mod_____     pf5__          /       moddep___ / 1            .xxxdup    /       del_____     pf6__          /       deldep___ / 1            .xxxdup    _       ________     _____          /       deptmenu / 3___  ________                                         * Type: 1. Dialog  2. Program  3. Menu  Enter  F1=Help  F3=Exit  F4=Prev  F5=Next  F7=Bkwd  F8=Fwd

Responses

For each response, enter the response name and name the assigned key.

Functions

For each function, enter the function name and specify the type (1 - dialog; 2 - program; 3 - menu) and the dialog associated with it, if there is one.

Note: The dialog names can be specified early in the prototyping process; the dialogs need not exist.

Unique identifier for the response

The combination of the name, key, and associated function for a response makes up the unique identifier for the response within the application definition. Because of this, you can have several different responses with the same name and/or control key. For example, several ADD responses can be defined for an application. One ADD response can invoke function ADDDEP. Another ADD response can invoke function ADDEMP. This capability allows you to define a consistent user interface for an application, where all similar functions are invoked in similar ways.

Once you have named all responses and functions, you are ready to further define each one. Pressing [PF5] will advance you through the responses and functions selected on the Response/Function List screen.

Below is a discussion of defining responses and functions.