Previous Topic: Step 4:  Add a Work RecordNext Topic: Step 6:  Recompile the Dialog


Step 5: Add Premap and Response Processes

You use the ADSC Process Modules screen to associate premap and response processes with a dialog

Earlier in this chapter, you defined a premap process, XXXDUPD-PREMAP, and two response processes for dialog XXXDUPD: XXXDUPD-ENTER and XXXDUPD-PA2.

The premap process will execute before the map is displayed to the end user.

When the end user presses a control key to input data on the dialog's map, one and only one of the response processes can be executed. To make it easy for the end user to select the appropriate response process, you will associate each response process with its own control key.

As an application developer, you associate control keys with response processes when you add the processes to the dialog:

You access the Process Modules screen by entering 5 at the Screen prompt on the Main Menu and pressing [Enter].

Process Modules Screen

The Process Modules screen is displayed. You type the name of the process module after the Name prompt:

                              Process Modules               Page    1  of     1                                                                      More                          Dialog  XXXDADD   Version     1   Name    xxxdupd-premap__________________                  2  Type   Version ____                                              _  Execute on errors   Key     _____   Value  ________________________________   _  Drop   Name    xxxdupd-enter___________________                  3  Type   Version ____                                              _  Execute on errors   Key     enter   Value  ________________________________   _  Drop   Name    xxxdupd-pa2_____________________                  3  Type   Version ____                                              _  Execute on errors   Key     pa2__   Value  ________________________________   _  Drop   Name    ________________________________                  _  Type   Version ____                                              _  Execute on errors   Key     _____   Value  ________________________________   _  Drop  * Type : 1=Declaration,2=Premap,3=Response,4=Default Response  Enter  F1=Help  F3=Exit  F4=Prev  F5=Next  F7=Bkwd  F8=Fwd

[Enter]

When you press [Enter], ADSC compiles the process module source code and adds the compiled representation of each module to the dialog if there are no errors. ADSC redisplays the Process Modules screen with a message:

After the process modules have compiled successfully, you can recompile the dialog.