Designing and Using
Forms
Transmit Modified Fields
Each
field
in
a formatted display
has
a Modified
Data
Tag (MDT) associated
with
it
that
indicates
whether
or
not
any
data
has
been entered into
the
field.
When
Format
mode
is
turned
on (enabled),
the
MDTs for all fields
in
the
form
are
automati-
cally
set
((off".
The
entry
of
any
valid characters into a field
automatically
sets
the
MDT for
that
field to
(Con".
When one
or
more fields
are
cleared
through
the
keyboard
(Bor.)
the
MDTs for
the
affected fields
are
set
cC
on
".
When one
or
more fields
are
cleared
programmati-
cally (Ec J
or
Ec K), however,
the
MDTs for
the
affected fields
are
set
((off".
In
the
Terminal
Configuration menu,
there
is a field labeled Transmi t which specifies
whether
all
fields
in
the
form
or
only those fields which
have
been modified
are
to be
transmitted
to
the
host computer
when
the
operator
initiates
a
data
transfer
(using
the.
key, for example).
IfTransmi
t =Modi f i edF i
elds,
then
only those fields whose MDTs
are
set
(Con"
are
transmitted
to
the
host computer.
If
Transmi t
=A
11
Fie
1ds,
then
all
fields
in
the
form
are
transmitted
to
the
host computer regardless of how
their
MDTs
are
set.
Defining Fields Programmatically
From
a
program
executing
in
a host computer, you
may
define (Cunprotected"
and
((transmit-
only" fields
with
the
various
attributes
by using escape sequences.
An
Ec
[specifies
the
start
of
an
((unprotected" field,
and
Ec
{specifies
the
start
of
a ((transmit-only" field.
The
sequen-
ces Ec
6,
Ec
7,
and
Ec 8 define
the
various
attributes
ofeach field or subfield,
and
an
Ec ]
specifies
the
end
of
the
field.
Refer to Section 4 for
the
display
enhancement
escape sequences.
The
same
sequence of operations applies when defining fields
and
subfields
programmati-
cally
as
when
doing
so
through
the
keyboard.
For
example,
if
you wish
the
overall field to
include video
enhancements,
you
must
issue
the
appropriate Ec
&d
sequence before
issuing
the
Ec [ or Ec { sequence.
To
define
the
start
of a subfield, you issue
an
appropriate
se-
quence
(Ec
6,
Ec
7,
or Ec
8)
at
the
point where
the
subfield is to begin.
The
following escape sequences specify field types:
• Ec
6=
• Ec
7=
• Ec
8=
5-6
begin alphabetic field
(A
through
Z,
a
through
z,
and
space only)
begin
numeric
field (space, 0
through
9,
minus
sign, plus sign, comma,
and
decimal point)
begin
alphanumeric
field (all keyboard characters)