Skip to main content

Tree grid view definition

Overview

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

Similar to the tree diagram, based on the metamodel definition of the model structure, you can view and edit only the entities you want to see according to the purpose. Since it can handle a lot of information on one screen, it is also suitable for modeling large-scale structured software.

Example of tree grid

note
  • Entity that can be displayed as a child node in the tree of the tree grid is an entity that has ownership relation, reference relation, and derivation relation with the entity of the parent node as well as the tree diagram.
  • You can represent not only a tree that represents the parent-child structure of a model, but also a tree that traces the relationships between models.
info
  • In the tree grid, only the models held in the related fields added in the view definition are displayed in the tree.
  • Even if you have defined the model hierarchy in the metamodel, the child nodes of the tree will not be visible until you add the relevant fields to the view definition of the tree grid.

The following describes how to define a tree grid view in the following order:

  • Show child nodes in the tree
  • Hide child nodes from the tree
  • Change the display columns of the grid

Show child nodes in the tree

To dig deeper into the tree hierarchy in the tree grid so that you can expand the relevant elements of your model as child nodes:

Show child nodes in tree

Operation procedure
  1. Select one of the cells in the grid row where you want to expand the child nodes.
  2. Open the New Control dialog in one of the following ways:
    • From the ribbon, click Form> Form> Add Exist Fields.
    • From the ribbon, click Profile> Form> Add Exist Fields.
    • Right-click and click Add Exiting Field from the context menu.
  3. From the Filelds pull-down list in the New Control dialog, select the field that holds the model's relevant elements and press the OK button.
  4. If there is an existing related element, it will be displayed as a child node, and it will be added as a choice of entities that can be added to the left end of the toolbar at the top of the tree grid.
note
  • If there are multiple types of entities that can be added as related elements, you need to add an existing field for each of those entities.

Hide child nodes from the tree

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

Hide child nodes from tree

Operation procedure
  1. Select one of the cells in the grid row of the child node you want to hide from the tree grid.
  2. Right-click and click 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 display columns of the tree grid

To change the display columns in the tree grid, do the following:

Change display columns of grid

Operation procedure
  1. Click the Show/Hide Columns button on the toolbar at the top of the tree grid.
  2. In the Column Visibility dialog, check the columns you want to show in the grid and uncheck the columns you want to hide.
  3. After changing the columns to be displayed in the grid, click the [Reflect in View Definition] button and then the [Close] button.
note
  • You must have edit permission for the profile to reflect the changed column structure in the view definition.
  • If it is not reflected in the view definition, it will revert to the original column structure when the project is reopened.
  • If the field corresponding to the column is undefined 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. Drag the column headings left or right in the tree grid to change the column order.
  2. Adjust the display width of each column in the tree grid.
  3. From the ribbon, click Form> Grid> Set Column Composition to View Definition.
note
  • To reflect the changed column order and column width in the view definition as the default value of the tree grid, you need edit permission of the profile.
  • If not reflected in the view definition, the original column order and column width will be restored when the project is reopened.