ENABLE Reference Manual
ENABLE ATTRIBUTES
FILL Attribute
• If the box has ON as the value of the VALUES attribute, the
application, upon execution, automatically reads a record or
records from the data base file by using the initial values
in the record description as a starting point. If there are
no records in the file, the application displays the initial
values on the screen.
For a box at a subsequent level of the tree, the application
performs an automatic read operation whenever a user performs an
operation other than DELETE (INSERT, READ, or UPDATE) on the
higher level box to which that box is linked.
Suppose, for example, that you generate an application with the
following value for the TREE attribute:
TREE ( 03 parts
05 supplier LINK parts.partno
TO OPTIONAL supplier.partnum )
For this application, the "parts" box is at the highest level of
the tree structure. If FILL is ON and VALUES is OFF for the
"parts" box, the application automatically reads the first
record in the file associated with this box.
If FILL is ON for the "supplier" box, which is at the next level
of the tree, the application automatically performs a read
operation on the file associated with this box whenever an
operation (other than DELETE) is performed on the "parts" box.
4-25