| Form file structure / LAYOUT section | |
The TREE container defines the presentation of a list of ordered records in a tree-view widget.
TREE [identifier] [ ( attribute [,...] ) ]
{
 title [...]
 [name_column   [|identifier   [|...]] ]
[...]
}  
END
 COMMENT, DOUBLECLICK, HIDDEN, FONTPITCH, STYLE, TAG, UNHIDABLECOLUMNS, UNMOVABLECOLUMNS, UNSIZABLECOLUMNS, UNSORTABLECOLUMNS, WANTFIXEDPAGESIZE, WIDTH, HEIGHT, PARENTIDCOLUMN, IDCOLUMN, EXPANDEDCOLUMN, ISNODECOLUMN, IMAGEEXPANDED, IMAGECOLLAPSED, IMAGELEAF.
To create a tree view in a grid-based layout, you must define the following elements in the form file:
For more details about this item type, see TREE item type.
LAYOUT 
GRID
{
<Tree t1                       >
 Name                   Index 
[c1                     |c2    ]
[c1                     |c2    ]
[c1                     |c2    ]
[c1                     |c2    ]
}
END 
END
ATTRIBUTES
LABEL c1 = FORMONLY.name;
LABEL c2 = FORMONLY.idx;
PHANTOM FORMONLY.pid;
PHANTOM FORMONLY.id;
TREE t1: tree1
    PARENTIDCOLUMN = pid,
    IDCOLUMN = id;
END
INSTRUCTIONS
SCREEN RECORD sr_tree(name, pid, id, idx);
END