Download June 1996 - Hardhats.Org

Transcript
Starting Out with Forms
1-7. Add an Edit Block to the Form
In previous lessons, we added fields to a DISPLAY-type block. Because of the block
they were added to, these fields are read-only. In this lesson, we’ll add an EDITtype block to our form; this will let us add fields to the form that the user can
actually edit.
To add the edit block:
1. Invoke the Form Editor again, and load the Zxxx EDIT form.
2. In the Form Editor, use the arrow keys to position the cursor at row 5,
column 1 on the form.
3. Add a block to the form at the cursor position (row 5, column 1) by pressing
<PF2><B>.
4. You are asked to select a new block name. Enter your namespace,
concatenated with "MAIN 2" (e.g., "Zxxx MAIN 2").
5. At the "Are you adding Zxxx MAIN 2 as a new block?" prompt, answer YES.
6. At the "Are you adding Zxxx MAIN 2 as a new block on this page?" prompt,
answer YES. You are now given a chance to enter the properties for the Zxxx
MAIN 2 block.
7. In the Properties window, the Type for this block should be EDIT, and the
BLOCK ORDER should be 2; accept the other defaults. Press <PF1><E> to
save the new block and exit.
Block Properties Stored in FORM File
BLOCK NAME: Zxxx MAIN 2
TYPE OF BLOCK: EDIT
BLOCK ORDER: 2
OTHER PARAMETERS...
POINTER LINK:
PRE ACTION:
POST ACTION:
Block Properties Stored in BLOCK File
NAME: Zxxx MAIN 2
DD NUMBER: 200
DESCRIPTION (WP):
DISABLE NAVIGATION:
PRE ACTION:
POST ACTION:
June 1996
ScreenMan Tutorial for Developers
25