EDIT item definition

Defines a simple line-edit field, in a grid-based layout.

Syntax

EDIT item-tag = field-name [ , attribute-list ] ;
  1. item-tag is an identifier that defines the name of the item tag in the layout section.
  2. field-name identifies the name of the screen record field.
  3. attribute-list defines the aspect and behavior of the form item.

Form attributes

AUTONEXT, CENTURY, COLOR, COLOR WHERE, COMMENT, COMPLETER, DEFAULT, DISPLAY LIKE, DOWNSHIFT, FONTPITCH, FORMAT, HIDDEN, IMAGECOLUMN, INCLUDE, INVISIBLE, JUSTIFY, KEY, KEYBOARDHINT, NOT NULL, NOENTRY, PICTURE, PLACEHOLDER, PROGRAM, REQUIRED, REVERSE, SAMPLE, STYLE, SCROLL, TAG, TABINDEX, TITLE, UNSORTABLE, UNSIZABLE, UNHIDABLE, UNMOVABLE, UPSHIFT, VALIDATE LIKE, VERIFY.

Style attributes

Common: backgroundColor, border, fontFamily, fontSize, fontStyle, fontWeight, localAccelerators, showAcceleratorInToolTip, textColor, textDecoration.

Class-specific: dataTypeHint, spellCheck.

Usage

Define the rendering and behavior of an edit item tag, with an EDIT element in the ATTRIBUTES section.

For more details about this item type, see EDIT item type.

Example

LAYOUT
GRID
{
[f1         ]
 ...

}
END
END

ATTRIBUTES
EDIT f1 = customer.cust_state,
   REQUIRED,
   COMMENT = %"customer.cust_state.comment",
   INCLUDE=(0,1,2);
...