ENABLE Reference Manual
ENABLE ATTRIBUTES
TREE Attribute
S5043-026
DEPT-EMPLOY
Page 1/1
* DEPT-NO _______
EMPNUM _______
EMPNAME ___________________
+ DEPT-NAME ____________
DEPT-LOC ________________________
Ready for input F3 for Help, shift F16 to exit
Join field for
depart-box
Labels and fields
for employ-box
Remaining labels
and fields for
depart-box
Figure 4-10. Sample Terminal Screen With Two Boxes
Notice that the join field ("dept-no") of "depart-box" appears on
the screen on the screen line that directly precedes the fields
for "employ-box." The join field for "employ-box" ("dept-num")
does not appear on the screen since it always has the same value
as dept-no.
Example of the TREE Attribute With Three Boxes. When you build a
tree structure for three boxes, you should first determine the
links that can exist between the boxes, then decide which box (or
boxes) should be a parent box, and finally choose the level at
which these boxes are to reside in the tree structure.
Suppose, for example, that you want to generate an application
that displays information about departments, the employees that
belong to those departments, and the dependents of those
employees. Suppose further that this application is to use the
following boxes:
• "depart-box," which represents a file that contains
information about departments
4-88