# n*tree

## How to add n*tree structure to mask

### What to do:

| New n*tree structures can only be used after Agile e6 has been restarted !
| n*tree structures are only loaded once by the database so that Agile e6 must be restarted after a n*tree definition has been modified.
| To use n*tree structures they must be added to mask!
| In this example the n*tree structure is is added to the item list mask with xntree_wlk. Follow the steps below: Create selection data Select mask data Create menu data
| ### Create selection data
| Open the Data View toolbox window with the button the selection data mask.
| Change to Insert mode with the button .
| Enter the selection name EDB-TRE-DOC, the selection text Save (this is the text displayed in the SEL menu) and optionally a description. Enter the userexit in the field userexit with which the n*tree structure is added to the mask of the item list xntree_wlk.
| ### Select mask data
| To open the DataView Form Data mask with the button .
| Search for the mask EDB-ART-SLI in the field Name. The data is the data of the item list.
| Click on the hyperlink in the field Menu/Sel to use the n*tree in the selection menu of the item list.
| As xntree_wlk is a select menu userexit it is not useful to select another menu allocation instead of .../Sel.
| ### Create menu data
| Click on the tab Field Assignment.
| Change to Insert mode with the button .
| Enter the name you have entered in the mask selection data EDB-TRE-DOC in the column selection name.
| Enter the position number (selection text) in the column Pno. Enter 1 for the first column.
| Click in the mask besides the tab. Click on the button Reconfigure to use the entry in the selection menu of the item list.
| To display the new entry, close the item list and reopen it.