HPlogo HP Data Entry and Forms Management System (VPLUS) Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 INTRODUCTION TO FORMS DESIGN

FIELD MENU

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

In case you want to assign special field characteristics, FORMSPEC displays a Field Menu, illustrated in Figure 3-21 “Field Menu”, for each field delimited during form design. Each menu displays up to three lines of the form, and marks the particular field to which the menu applies. It then displays the default field attributes of the field. The Field Menus are presented in the order the fields appear on the form layout, from left to right, top to bottom.

You can change the default field attributes by typing new values and pressing ENTER. If you do not want to change the defaults, simply press NEXT to display the next Field Menu. If you are designing simple forms, in which all data is accepted and no special edits are performed, you can skip all the Field Menus by pressing NEXT FORM. If you change the field length or type, the screen length or type of the associated ARB (if any) is updated at the same time, but the ARB length and type are not changed.

The field attributes, all except length, can also be changed using FORMSPEC in batch mode. See Section 7 for more information. Processing specifications can be specified on the Field Menu. See Section 4 for a description.

Figure 3-21 Field Menu

Field Menu

Fields

Num

(Display only) A number between 1 and 256 assigned by FORMSPEC to the field at form layout. The number is permanently assigned to the field and is not changed even if other field attributes or the position of the field on the form layout changes. However, if the field tag is changed, a new field number is assigned to the field. The field numbers of a form can be renumbered in screen order with the FORMSPEC batch mode command RENUMBER, as described in Section 7.

Len

(Display only) The length of the field as determined during form layout.

Name

Specify any USASCII name of up to 15 characters long; it must start with an alphabetic character and may be followed by any alphanumeric (A -Z, a-z, 0-9) or the underline (). It cannot be one of the reserved words listed earlier in Figure 3-2 “Main Menu”

Enh

Specify any combination of enhancements using up to four characters:

H

Half Bright

I

Inverse video

U

Underline

B

Blinking

S

Security

1-8

Color (refer to Figure 3-7 “Example of a Field Menu”)

NONE

No enhancement

Default HI

FType

Specify the field type:

D

Display only — cannot be modified by user.

R

Required — cannot be left blank.

O

Optional — may be left blank; edit checks and field phase processing specifications are skipped if the field is blank.

P

Process — may be left blank, but edit checks are performed and field phase processing specifications are executed even if the field is blank.

Default O

DType

Specify the data type:

CHAR

Specifies data to be a string of any characters.

NUM[n]

Specifies data to be numeric. The maximum number of decimal places is indicated by the optional digit (n), where n is a value between 0 and 9. An optional leading sign (+ or -) is allowed; as are commas and decimal points if correctly placed.

DIG

Specifies data to be a positive integer. No sign, no comma, no decimal point allowed.

IMPn

Specifies data to be numeric with an assumed decimal point. The assumed number of decimal places is indicated by the required digit (n), where n is a value between 0 and 9. A sign and commas are allowed. A decimal point is allowed but should not be entered.

MDY

Specifies data to be a date in the order month, day, year.

DMY

Specifies data to be a date in the order day, month, year.

YMD

Specifies data to be a date in the order year, month, day.

When Native Language Support is used, the symbols used to indicate thousands and decimals are language-dependent. The names of months and their abbreviations are accepted for each native language at run-time. For more information on Native Language Support, see Section 8.

Default CHAR

Initial Value

Specify data to be displayed in the field when the form is initially displayed.

Feedback to webmaster