The EMPLOYEE update screen allows you to scan through, insert, delete and modify EMPLOYEE records. The various messages and menus that appear while searching and updating the Employee table were automatically created for you when you filled in the Main Table Processing.
The cursor is positioned initially on the EMPLOYEE_NUMBER field, which contains the value 0. QA Build expects you to enter the appropriate EMPLOYEE_NUMBER to access an EMPLOYEE record. Type the number, for example 1, of an existing employee followed by <Enter>.
The record having EMPLOYEE_NUMBER 1 is retrieved and the fields of the Employee update screen are filled with the respective values. Also the record scan dialog map appears; it provides these options:
Option |
Function |
<Enter> |
Invokes the Record deletion dialog map (discussed later) |
<Esc> |
Moves the cursor back to the EMPLOYEE_NUMBER field to select another key |
<Down arrow> and <Right arrow> |
Scan through the Employee records in ascending EMPLOYEE_NUMBER order |
<Up arrow> and <Left arrow> |
Scan through the Employee records in descending EMPLOYEE_NUMBER order |
When the cursor is positioned on the EMPLOYEE_NUMBER field, you can insert a new record by typing any number (such as 16) that doesnt correspond to an existing EMPLOYEE record key, followed by <Enter>. QA Build displays the New record dialog map which provides these options:
Option |
Function |
Option 1 - Insert |
adds a new record with the specified key. The cursor moves to the NAME field so that you can type the employees name. Pressing <Tab> or <Down Arrow> moves the cursor to the next field. Pressing <Tab> on the last field, or <Enter>, invokes the submit record menu: |
Option 2 - Search |
allows the user to search through the existing records. |
Option 8 - Rekey |
Prompts for another employee number to be inserted. |
When the cursor is positioned on the EMPLOYEE_NUMBER field, you can amend or delete an existing record by typing its key and pressing <Tab> followed by <Enter>. The record is retrieved and the fields of the EMPLOYEE update screen are filled with values. The Record scan dialog map appears:
Press <Enter> to invoke the Record deletion dialog map:
Use Option 1 - Amend to modify the record.
Use Option 2 - Delete to delete the record, but since you answered Yes in table processing to the question deletion confirm required, you will be asked: Do you really want to do this ? No
Press <Esc> from any field in the screen to exit from your program.