Gantt-chart Module

Gantt-chart module is a module for output of specific types of hierarchical data that have dates.

Configuration in deploy.json

Specifying the length for the search output

"searchCount": 25

Adding filters to the columns

"gantt-chart": {
      "globals": {
        "config": {
          "columns": [
            {
              "name": "text",
              "caption": "Название"
            },
            {
              "name": "owner",
              "caption": "Владелец",
              "align": "center",
              "filter": true
            },
            {
              "name": "priority",
              "caption": "Приоритет",
              "align": "center",
              "filter": true
            },

Specifying of diffrent “createUrl” for different classes

"createUrl": {
           "project@project-management": "registry/project-management@eventBasic/new/eventBasic",
           "event@project-management": "registry/project-management@eventBasic/new/eventBasic",
           "eventObject@project-management": "registry/project-management@eventOnly/new/eventOnly",
           "eventOnly@project-management": "registry/project-management@eventOnly/new/eventOnly",
           "projectKNA704@project-management": "registry/project-management@eventKNA704/new/eventKNA704",
           "eventKNA704@project-management": "registry/project-management@eventOnlyKNA704/new/eventOnlyKNA704",
           "eventObjectKNA704@project-management": "registry/project-management@eventOnlyKNA704/new/eventOnlyKNA704",
           "eventOnlyKNA704@project-management": "registry/project-management@eventOnlyKNA704/new/eventOnlyKNA704"
         }

Configuration of view types

"preConfigurations": {
           "config1": {
             "caption": "Основная",
             "showPlan": true,
             "units": "month",
             "step": 3,
             "days_mode": "full",
             "hours_mode": "full",
             "default": true
           },
           "config2": {
             "caption": "Расширенная",
             "showPlan": false,
             "units": "year",
             "days_mode": "full",
             "hours_mode": "work",
             "columnDisplay": {
               "text": true,
               "owner": true
             },
             "filters": {
               "priority": "Высокий"
             }
           },
           "config3": {
             "caption": "Обзорная",
             "showPlan": true,
             "units": "year",
             "step": 5,
             "days_mode": "full",
             "hours_mode": "full",
             "columnDisplay": {
               "text": true,
               "owner": true,
               "priority": true
             },
             "filters": {
               "priority": "Обычный"
             }
           }
         }

Set the property and values for the filter in the filters field.

Adjustable filter when selecting subnodes

In formulas in the general syntax of expressions, you can now access the context data. Currently it’s only implemented for lists in registry and gant. As we move to a common syntax, we’ll implement the support everywhere in the core.

The adjustable filter is not applied to the root object, which is explicitly specified via the URL parameter or selected in the drop-down list. The filter is applied only when SELECTING the SUBNODES.

Sorting the output

When displaying the project, the events are sorted by the numEvent attribute at all levels of the hierarchy.

"sortBy": "numEvent"

// либо
"sortBy": {"numEvent": -1, "anyOtherAttr": 1}

Configuring an object selection list for information output

Applied in case when the filter is set for the column, and objects are not displayed all at once, but can be chosen from a list. If value ``”rootParamNeeded:true”``is specified, an empty screen will be displayed and a window for choosing the project.

"gantt-chart": {
      "globals": {
        "rootParamNeeded": true
      }
    }