ENABLE Reference Manual

ENABLE ATTRIBUTES
TREE Attribute
To build this tree structure for an application, you set a value
for the TREE attribute as follows:
1. Identify "depart-box" as being at the first level of the tree
structure:
SET APPL TREE (02 depart-box
2. Identify "employ-box" as being at the second level of the
tree structure:
SET APPL TREE (02 depart-box
04 employ-box
3. Provide the LINK OPTIONAL that connects "employ-box" to its
parent "depart-box":
LINK dept-no TO OPTIONAL dept-num
| |
| join field of "employ-box"
|
join field of "depart-box"
4. Include the LINK OPTIONAL with the part of the TREE value
that identifies a level for "employ-box":
SET APPL TREE (02 depart-box
04 employ-box
LINK dept-no TO OPTIONAL dept-num
5. Identify "depends-box" as being at the third level of the
tree:
SET APPL TREE (02 depart-box
04 employ-box
LINK dept-no TO OPTIONAL dept-num
06 depends-box
6. Provide the LINK OPTIONAL that links "depends-box" to its
parent "employ-box":
LINK employ-box TO OPTIONAL depends-box VIA empnum
| | |
| | Name of join
| | field for both
| | boxes
| |
| Name of child box
Name of parent box
4-96