Skip to main content

Treegrid view definition

Overview

Next Design allows you to define views in a tabular tree grid that can be collapsed and expanded according to the tree structure.

Similar to the tree diagram, based on the meta model definition of the model structure, you can display and edit only the entities you want to see according to your usage. Since a large amount of information can be handled on one screen, it is also suitable for modeling large-scale structured software.

Tree grid example

note
  • Entities that can be displayed as child nodes in the tree of the tree grid are entities that have owned, referential, or derived relationships with the entity of the parent node, as in the tree diagram.
  • Not only a tree that represents the parent-child structure of models, but also a tree that traces the relationships between models can be represented.
info
  • Only the models held in the related fields added in the view definition are displayed in the tree grid.
  • Even if the model hierarchy is defined in the metamodel, the child nodes of the tree will not be visible until you add the relevant fields to the treegrid view definition.

Below, we will explain how to define a tree grid view in the following order:

  • display child nodes in the tree
  • hide child nodes from the tree
  • Change the visible columns of the tree grid

Show child nodes in the tree

To enable the TreeGrid to drill down into the tree hierarchy and expand related elements of the model as child nodes, proceed as follows:

show child nodes in tree

Operation procedure
  1. Select any cell in the grid row where you want to expand the child nodes.
  2. Open the New Control dialog by doing one of the following:
    • Click Form > Form > Add Exist Fields from the ribbon.
    • Click Profile > Form > Add Exist Fields from the ribbon.
    • Right-click and select Add Exiting Field from the context menu.
  3. Select the field that holds the related elements of the model from the [Filelds] pull-down list in the [New Control] dialog, and press the [OK] button.
  4. If there is an existing related element, it will be displayed as a child node and added as a selectable entity option on the left side of the toolbar at the top of the tree grid.
note
  • If you have multiple types of entities that can be added as related elements, you will need to add an existing field for each of those entities.
Recursively reflect display information to child nodes

If you have an entity with owning self-relationships and want to recursively set display information for child nodes, do the following:

Recursively reflect display information to child nodes

Operating procedure

  1. Select any cell in the grid row where you want to recursively propagate display information to child nodes.
  2. Right-click and hover Reflect definition to child hierarchy from the context menu.
  3. Since the options are displayed in a list format, if you click the number of layers you want to reflect recursively, the display information of the node in the selected line will be recursively reflected in the child nodes for the specified number of layers.

:::

Hide child nodes from the tree

To hide the child nodes displayed in the tree grid, follow these steps:

hide child nodes from tree

Operation procedure
  1. Select any cell in the grid row whose child node you want to hide from the tree grid.
  2. Right-click and select Hide this Field from the context menu.
  3. Sibling nodes held in the same related field are also hidden at the same time.

Change the visible columns of the tree grid

To change the columns displayed in the tree grid:

Change grid columns

Operation procedure
  1. Click the Show/Hide Columns button on the toolbar above the tree grid.
  2. In the Column Visibility dialog, check the columns to display in the grid and uncheck the columns to hide.
  3. After changing the columns to be displayed in the grid, press the [Apply to view definition] button and then press the [Close] button.
note
  • To reflect the changed column configuration in the view definition, you must have permission to edit the profile.
  • If it is not reflected in the view definition, the original column configuration will be restored when the project is reopened.
  • If the field corresponding to the column is not defined for the entity, the corresponding cell will be grayed out.

To change the default column order and column width in the tree grid, follow these steps:

Operation procedure
  1. Swap the column order by dragging the column header left or right in the tree grid
  2. Adjust the display width of each column in the tree grid.
  3. Click Form > Grid > Set Column Composition to View Definition from the ribbon.
note
  • To reflect the changed column order and column width to the view definition as the default values ​​of the tree grid, you must have permission to edit the profile.
  • If not reflected in the view definition, the original column order and column width will be restored when the project is reopened.