How to add your own fields to a hierarchy
Your own fields on the structure, directory and text nodes tables of a hierarchy, adding them later, inline editing, and the fields that are locked.
You will learn
- How to keep more information on every node, such as an owner, a responsible team or a planning value.
- Where your own fields can live in a parent-child hierarchy and in a hierarchy with a directory.
- How to add a field to an existing hierarchy and edit its values inline.
- Which fields of a hierarchy can't be changed.
This article is for application builders who extend a hierarchy, and for the controllers and data stewards who fill in the values.
Prerequisites
- A hierarchy view. See Introduction to hierarchies in NextTables.
- Edit table to add or change fields, and Edit data to enter values.
Where your own fields live
| Table | One value per | Example | Can be added |
|---|---|---|---|
| Parent-child table, or the structure table of a directory | Node (and period, with validity) | Owner, Budget, Comment | When creating the hierarchy, and later |
| Directory table | Hierarchy | Responsible team, Status | Only when creating the hierarchy |
| Text nodes table | Text of a text node | Short text | Only when creating the hierarchy |
Every field on the structure table exists for every node type. A field that only makes sense for profit centers simply stays empty on region nodes.
Step-by-Step Instructions
1) Add fields when you create the hierarchy
- In step 3 Add fields of the wizard, use Other fields on each table and select Add field.
- Enter the Field name, the Column name and the Data type. Pick a Masterdata object to offer a list of values, for example the list of users for Owner, and tick Required if every row needs a value.
- For a rating, pick Rating (full stars) or Rating (half stars). For several values in one text field, pick Multi select text.
The wizard steps are in How to create a parent-child hierarchy in NextTables and How to create a hierarchy with a directory.
2) Add a field to an existing hierarchy
- Open the menu of a column in the hierarchy grid and select Add field to the right or Add field to the left.
- Define the field as you would in a grid view. It is added to the parent-child table or to the structure table.
- The new field appears as a column next to the tree.

3) Enter values
- Double-click a cell in your field to edit it inline, or select the node and use Edit node to edit all its fields in one dialog.
- The Node and Node type columns can't be edited inline. Move nodes by drag and drop instead.
- Values are saved per row. With validity, a node has one value per period, so a new owner from January 1 is a new period of the node.

4) Arrange the columns
- Use Choose fields in the column menu to show or hide fields, and Pin field to keep a field in view while you scroll.
- Autosize this field and Autosize all fields fit the widths to the values. Reset fields restores the original layout.
Fields you can't change
The fields that build the hierarchy are locked once it exists: the identifying fields, the parent and child fields, Hierarchy, Node, Parent, Node type, the sort order and the validity fields. Trying to change or remove one shows "This field defines the hierarchy's structure and can't be changed or removed." Most of them are also hidden in the grid, because the tree already shows what they hold.
Troubleshooting / FAQs
1. I want a field on the directory table, but the hierarchy already exists.
Fields added later always go to the structure table. To keep information per hierarchy, add a field on the structure table and fill it on the top-level nodes, or create a new hierarchy view with the field on its directory table.
2. Can a field be used only for one node type?
Every structure field exists on every node, so leave it empty where it doesn't apply. Make it optional rather than required, otherwise nodes of the other types can't be saved.
3. Can I use my own fields in reports?
Yes. Your fields are ordinary columns of the hierarchy's tables in your database, so any tool that reads those tables sees them.
4. A cell shows "The structure view's rules don't allow this edit".
A rule on the hierarchy refuses the value, for example a required field that is empty. Correct the value and save again.


