HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)
378 Chapter7
USING FORMSPEC IN BATCH MODE
BATCH MODE COMMANDS
FIELD
Updates field attributes.
Syntax
{,
newfieldname
}
{,
enhancement
}
FIELD
form
{
fieldtag
}{,
fieldtype
}
{
oldfieldname
}{,
datatype
}
{,
initialvalue
}
Parameters
form
is the name of an existing form within the current forms file.
fieldtag
tag assigned to the field in form screen design.
oldfieldname
name currently assigned to the field in the field menu.
newfieldname
replacement field name.
enhancement
replacement display enhancement code.
fieldtype
replacement field type.
datatype
replacement data type.
initialvalue
replacement initial value. If $EMPTY is entered in the first six positions
of the parameter, initial value is cleared.
Discussion
The first two parameters of this command identify the field to be updated. The remaining
parameters are the actual updates. The field menu update parameters
(
newfieldname
…
initialvalue
) may be longer than the corresponding number of
character positions available on the Field Menu in interactive FORMSPEC, in which case
the input parameter is truncated (i.e., treated as command documentation).
Example
FIELD PARTS a_b_cA_B_C_CODE,NONE,R,,D
Updates field menu selections for field a_b_c of form PARTS. Specifically, the field name is
set to A_B_C_ CODE, the field display enhancement code is set to NONE (for no
enhancements), the field type value is set to R (for required), and the data type value is
unchanged. The initial value for the field is set to the character D.