1. General information

1.1. Description of the control

Tree is a tree structure.

  • The nodes of the tree structure are composed according to the “pid” system column, which refers to the parent record of the same form (nested records). If the tree structure is built over the form of the open record and its database query has no conditions, the root contains the currently open record. Otherwise the root contains the nested records of the currently open record (if the query over the same form has a condition on the “id” column), the records without a parent record, or, if there are none, the records nested under a record of another form.
  • Dragging a node using the Drag&Drop method changes the parent record of the dragged record. The change is saved to the database immediately, is written to the change history, and does not run the save scripts of the edit form. Only a record that the user may edit can be moved. Only the moved record is checked, not the record it is moved under.
  • If the text of a node contains a vertical bar “|”, the parts of the text separated by the vertical bar are displayed as columns side by side. With the “Show details in tree” box checked, the text of the node is not split.

1.2. Create a new control

1.3. Edit or delete a control

  • For each existing control, a pencil icon appears on the left side of the edit form to change or delete the control's settings.
  • Individual controls can be moved vertically in the edit form using the Drag&Drop method. Moving consists of grabbing the control, preferably after its name located in the left column of the edit form, and then dragging it to the desired place in the edit form.
  • Controls can be moved only with the “Drag & Drop” or “Multi Drag & Drop” check box located above the toolbar with controls selected. For security reasons, these check boxes are cleared after each login to the application, so that a control is not moved by accident.
  • With the “Multi Drag & Drop” check box selected, a check box is displayed next to the controls instead of the pencil icon. Controls marked with the check box are moved together with the dragged control and keep their mutual order.

2. List of tabs in the control settings dialog

  • General – Setting general properties
  • Details – Settings for columns displayed in details
  • Search – Search settings
  • Help – Help text settings
  • Rights – Rights settings

2.1. “General” tab

2.1.1. Name

  • The name of the control displayed in the header of the tree structure.

2.1.2. Dictionary

  • The dictionary displays a list of names of other controls, forms, view pages, categories, applications, application groups, and database query columns and headers used throughout the NET Genium installation.
  • The dictionary search is used to design the correct control name and to maintain the consistency of the nomenclature throughout the application so that controls with the same meaning located in different places in the application are named in the same way.

2.1.3. Width

  • The width of the control, expressed in pixels.
  • If this input field is not filled in, the tree structure stretches to the full available width.

2.1.4. Data source

  • The data source defines the source database records displayed in a tree structure.
  • Data source settings are made in the graphical designer of database queries. A detailed description of the database query designer is provided in the separate guide Database query designer.

2.1.5. Layout

  • The layout determines how the tree structure is displayed, either from left to right or from top to bottom.
  • The drop-down list contains the following values:
    • Horizontal – displaying the tree structure from left to right
    • Vertical – top-down display of the tree structure

2.1.6. Type

  • The tree type determines the display range of the tree structure.
  • The whole tree contains all nodes, and the subsequent showing or hiding of individual subnodes is solved using javascript.
  • The power saving mode shows only active nodes, and the subsequent showing or hiding of individual subnodes is solved by updating the web page.
  • The option offers the following values:
    • Full tree – internal and leaf nodes together
    • Full tree – first internal, then the leaf nodes
    • Economic tree – internal and leaf nodes together
    • Economic tree – first internal, then the leaf nodes
  • Details
    • If the tree structure is sorted by a control with an integer data type, the order of the nodes follows only this sorting, and the choice between the “internal and leaf nodes together” and “first internal, then the leaf nodes” variants has no effect.

2.1.7. Options

  • Show the “New record...” icon
    • Checking this box determines whether an icon should be displayed in the header of the tree structure and for individual nodes, which redirects the user to a specific edit form in order to create a new record in the database.
    • Details
      • The icon is displayed only if the column whose values the tree structure displays in its nodes belongs to the source form of the database query, and not to a form attached by a join.
  • Deny opening records
    • Checking this box determines whether all users should be denied access to the edit form to open the displayed database record using the pencil icon that appears at the beginning of each node in the tree.
  • Deny Drag&Drop
    • Checking this box determines whether dragging and dropping of individual nodes in the tree structure should be disabled.
    • With Drag&Drop allowed, the “Sort order...” icon is displayed in the header of the tree structure, which opens a dialog for changing the order of the nodes. The icon is displayed only if the source form of the database query has a text box with the “Show the “Sort order...” icon in the view table” option checked.
    • If Drag&Drop is allowed and the tree structure is sorted by an integer column of the source form, the “Move up” and “Move down” icons are displayed in the navigation bar below the tree structure and, if the upper navigation bar is shown, in it as well. They move the selected node by one place among the nodes of the same level and renumber the values of the sort column of these nodes from 1. With the “Expand all” box checked, the navigation bars, and with them these icons, are not displayed.
  • Expand all
    • Checking this box determines whether the tree structure should be fully expanded, including all its nodes and subnodes, when it is displayed.
    • The navigation bar below the tree structure and, if the upper navigation bar is shown, also that bar offer the “Collapse all” and “Expand all” icons, which collapse or expand the entire tree structure, and the “Up one level” and “Down one level” icons, which move the selection from the selected node to the node one level up, or expand the selected node and select its first subnode.
  • Hide data source
    • Checking this box determines whether the contents of the tree structure should be automatically hidden when the edit form is opened. Database records will not be displayed to the user until the “Show” icon is clicked or clicking on the tab in which the tree structure is located. If the tree structure is located on the tab that is active when the edit form is opened, the database records are displayed immediately.
    • Details
      • On the first tab of the edit form, the contents of the tree structure are not displayed when the form is opened, even if this tab is active, nor by clicking on it. The database records are displayed only after clicking the “Show” icon or after the form is submitted.

2.2. “Details” tab

2.2.1. Options

  • Show details
    • Checking this box determines whether the tree structure should display the details of each record. With the vertical layout, the details are displayed to the right of the tree structure. With the horizontal layout and on a mobile device, they are displayed below the tree structure.
  • Show details in tree
    • Checking this box determines whether the tree structure should display the details of individual records as part of individual nodes or subnodes.
  • Show tooltip
    • Checking this box determines whether the tree structure should display the details of individual records in the tooltip when the mouse hovers over individual records.
    • Details
      • The tooltip is not displayed on a mobile device.

2.2.2. Columns

  • Definition of columns of details displayed in the details next to or below the tree structure, in the nodes of the tree structure, or when hovering the mouse over individual records of the tree structure.
  • The “(ID)” item displays the ID of the record in the details.
  • The “-” item inserts an empty row between the detail columns.
  • Details
    • The “-” item does not apply if no displayed row precedes it in the details or if the last displayed row is another separator.

2.3. “Search” tab

2.3.1. Options

  • Activate search
    • Checking this box determines whether a row with a search box and a “Search” button should be automatically displayed in the tree header.
    • The search is performed in the node text. If the “Show details” box is checked, the search is also performed in the detail columns checked in the list displayed by the “+” button in the search row. Only detail columns in which the search is allowed are offered. A detailed description of how to write the search term is provided in the separate guide Application usage basics.
    • Details
      • On a mobile device with a small screen, the row is not displayed automatically.
      • The node text is searched even if the settings of its control do not allow the search.
      • If the node text is displayed only to the owner or co-owner of the record, it is searched only for users with administrator rights and for co-owners.
      • Detail columns whose value is displayed only to the owner or co-owner of the record are not offered for the search.
  • Show search results only
    • Checking this box determines whether the data in the tree structure should be displayed only when filling in the values in the form referenced by the constraints of the database query of this tree structure.

2.4. “Help” tab

2.4.1. Help

  • Help text is displayed to the right of the control in the edit form.
  • The help texts of all controls start at the same vertical line across the entire edit form.
  • Text – the help text is defined by a manually entered text string in a multi-line text field below the radio button
  • From query – the help text is defined by the result of a database query that is evaluated when the edit form is opened
  • A detailed description of the help text is provided in the separate guide Layout settings.

2.5. “Rights” tab

2.5.1. Rights

  • Rights define a list of user groups and users who have permission to view the control on the edit form.

2.5.2. Replace rights to other controls

  • The “Replace rights to other controls” function is used to unify the rights within the entire edit form for controls that are related in terms of rights.
  • Thanks to the “Show...” link, it is possible to display a list of all controls in the edit form, including setting the rights of these controls. A check box is displayed for each control to select it. When the control is saved, the same rights are then set for the selected controls.
  • An alternative for unifying rights within the entire edit form is to display the report available from the “Rights of child objects” tab in the edit form settings.

2.6. “Save”, “Save to all users”, “Delete”, and “Close” buttons

  • “Save” button – Saves changes to the control settings together with the individual settings of the currently logged-in user.
    • The columns on the “Details” tab from this dialog are applied to the individual settings of this tree for the current user.
    • Individual tree settings can be opened using the gear icon in the icon bar in the header of the tree. The icon is displayed if any of the “Show details”, “Show details in tree” or – except on mobile devices – “Show tooltip” boxes is checked.
    • Individual tree settings include the following options:
      • Column settings in the “Details” tab of the individual tree settings
    • All other users will retain their individual tree settings.
    • For users with administrator privileges, the individual settings dialog also offers the “Save to more users” tab. The “Save to more users” button overwrites the details columns in the individual tree settings of the selected user groups and users according to the dialog.
    • Details
      • The individual settings icon is not displayed to the anonymous user.
  • “Save to all users” button – Saves changes to the control settings and deletes the individual settings of this tree for all other users so that, upon the next display of the tree, the default settings defined in this dialog are applied. The individual settings of the current user are modified in the same way as by the “Save” button.
  • “Delete” button – Permanently deletes the control.
  • “Close” button – Closes the control settings dialog without saving changes.