Previous Topic: Step 4:  Define Application Response and Function RelationshipsNext Topic: Step 6:  Further Define the Application Functions


Step 5: Further Define the Application Responses

You further define each application response by using the Response Definition screen. A sample Response Definition screen is shown below:

Sample screen

                              Response Definition  Application name:   XXXAPPL    Version:    1  Response name:      ADD                                 Drop response (/) _  Function invoked:   ADDDEP  Description . . . . ____________________________        Security class:   0  Response type. . . . . . . 2   1. Global      2. Local  Response execution . . . . 2   1. Immediate   2. Deferred  Assigned key . . . . . . . PF04  Control command. . . . . .  1   1. Transfer               2. Invoke                                  3. Link                   4. Return                                  5. Return continue        6. Return clear                                  7. Return continue clear  8. Transfer nofinish                                  9. Invoke nosave         10. Link nosave  Enter  F1=Help  F3=Exit  F4=Prev  F5=Next

Screen prompts

Certain information will be presented to you when this screen is displayed:

When you define a response on the Response Definition screen, you typically enter information after the following prompts:

Responses for Department application

The table below summarizes the specifications you will make for each of the five responses in the Department application. You can define these responses in any order, although it is often useful to define the global responses first. In the sample definition session shown in this chapter, these responses are defined in the order presented below.

Response name

Description

Control key

Function invoked

Response type

BACK

Return to menu

CLEAR

POP

Global

EXIT

Terminate application

PF9

QUIT

Global

ADD

Add a new department

PF4

ADDDEP

Local

MOD

Modify a department

PF5

MODDEP

Local

DEL

Delete a department

PF6

DELDEP

Local

To begin defining application responses, access the Response Definition screen by pressing [PF5] from the Response/Function List screen and define an application response.

The first two responses, BACK and EXIT, are used by most functions in the application. To make the functions easier to define later, you will define BACK and EXIT as global responses. When you define functions in ADSA, a global response is automatically available from each function. You can selectively remove a global function from functions when you define the functions.

You define the BACK response as shown:

Defining the BACK response

                              Response Definition  Application name:   XXXAPPL    Version:    1  Response name:      BACK                                Drop response (/) _  Function invoked:   POP  Description . . . . return to menu   Response type. . . . . . . 1   1. Global      2. Local  Response execution . . . . 2   1. Immediate   2. Deferred  Assigned key . . . . . . . CLEAR  Control command. . . . . .  1   1. Transfer               2. Invoke                                  3. Link                   4. Return                                  5. Return continue        6. Return clear                                  7. Return continue clear  8. Transfer nofinish                                  9. Invoke nosave         10. Link nosave  Enter  F1=Help  F3=Exit  F4=Prev  F5=Next

After you press [Enter], ADSA adds the response definition if there are no errors, and then redisplays the Response Definition screen.

Defaults

ADSA fills in default values for the following Response Definition screen prompts if you have not entered another value:

When you press [Enter], the screen will redisplay with a confirming message if the definition is correct, or an error message if an error has been encountered.

Note: If you press [Enter] after providing information, the screen will redisplay. If you press [PF5] after providing information and there are no errors, the appropriate Function Definition screen will be displayed. Since BACK and EXIT are responses that invoke system functions, the Function Definition screen will not be displayed.

Press [PF5] and define the EXIT response in the same way:

Defining the EXIT response

                              Response Definition  Application name:   XXXAPPL    Version:    1  Response name:      EXIT                                Drop response (/) _  Function invoked:   QUIT  Description . . . . terminate application      Security class:   0  Response type. . . . . . . 1   1. Global      2. Local  Response execution . . . . 2   1. Immediate   2. Deferred  Assigned key . . . . . . . PF09  Control command. . . . . .  1   1. Transfer               2. Invoke                                  3. Link                   4. Return                                  5. Return continue        6. Return clear                                  7. Return continue clear  8. Transfer nofinish                                  9. Invoke nosave         10. Link nosave  Enter  F1=Help  F3=Exit  F4=Prev  F5=Next

These responses invoke system functions. You do not have to further define any system function.

Defining the ADD response

The ADD response invokes the function, ADDDEP. The response definition is as follows:

                              Response Definition  Application name:   XXXAPPL    Version:    1  Response name:      ADD                                 Drop response (/) _  Function invoked:   ADDDEP  Description . . . . add department             Security class:   0  Response type. . . . . . . 2   1. Global      2. Local  Response execution . . . . 2   1. Immediate   2. Deferred  Assigned key . . . . . . . PF04  Control command. . . . . .  1   1. Transfer               2. Invoke                                  3. Link                   4. Return                                  5. Return continue        6. Return clear                                  7. Return continue clear  8. Transfer nofinish                                  9. Invoke nosave         10. Link nosave  Enter  F1=Help  F3=Exit  F4=Prev  F5=Next

ADD is defined as a local response because it is available only from the DEPTMENU function in the Department application. You will make ADD valid for DEPTMENU when you define the DEPTMENU function in Step 6.

After you press [Enter], ADSA adds the response definition if there are no errors, and then redisplays the Response Definition screen.

When you are finished defining a response for the Department application, you define the function it invokes as described below. Pressing [PF5] will display the Function Definition screen.