Projections

Creating a projection

  1. Go to alt [Menu] > [Configuration] > [Projections] (or [Selected entity ] > button alt [More] > button alt [Setup…] > field [Entity] > button alt > container alt [Projections]).

  2. Click the buttonalt [Add…] in tabular form.

  3. Fill in the required fields: “Projection name”, “Entity”, “Projection for transition”, “Edit mode”. Description of all fields in Projections.

  4. Click the button alt [Create ] to add an entry or the button alt [Cancel] to exit the add mode without saving data.

Creating a virtual field

Calculation fields are used to perform mathematical operations on the selected data. The age, time spent, and distance are calculated from the static fields. A view is created with the fields necessary for the calculation and a column with the result is added. The virtual field does not create a complete view, but only two columns: the primary key and the field with the result. Then the field is attached to the entity. An additional plus: painless removal and addition of columns. The view will have to be created again.

Pre-create an entity with a calculated value, the primary key of which will be> identical to the primary key of the entity for which theis virtual field> created.

  1. Go to alt [Menu] > [Configuration] > [Projection properties] (or [Selected entity] > button alt [More] > button alt [Setup…] > [Projection properties].

  2. Click the button alt [Add … ] in tabular form.

  3. Fill in the required fields: “Projection name”, “Column name”, “Is virtual” (in the value “true”), “Virtual property source”, “Original column name”. Description of all fields in Projection properties.

  4. Click the button alt [Create] to add an entry or the button alt [Cancel] to exit and from the add mode without saving data.

Configuring the field display parameters

  1. Go to alt [Menu] > [Configuration] > [Projection properties] > [Selected entity] (or [Selected entity] > button alt [More] > button alt [Setup…] > container alt [Projection properties]).

  2. In the detailed form, click the button alt [Edit] to switch to edit mode.

  3. Change the field values: “Order”, “Projection name”, “Column name”, “Title”, “Type on display”, “Visibility”, “Read- only mode”, “Is nullable”, “Is foreign key”, “Reference projection”, “Reference key”, “Is virtual”, “Virtual property source”, “Original column name”, “Show in references”, “Concatenation”, “Default value”, “Hint”, “Pattern”, “Additional parameters”. Description of all fields in Projection properties.

  4. Click the button alt [Save] to save the changes or the button alt [Cancel] to exit edit mode without saving.

Configuring the parameters of the drop-down field

An option sets the information that is displayed in the drop-down list.

  1. Go to one of the ways:

    Method 1:

    [Selected entity] > [Selected entry] > [Selected drop-down field] > button alt > button alt [Setup…] > container [Projection properties] > [Selected field]).

    image

    image

    Method 2:

    alt [Menu] > [Configuration] > [Projection properties] > [Selected field]).

  2. In the detailed form, click the button alt [Edit] to switch to edit mode.

  3. Change the value of the “Show in references” field. Description of the field in Projection properties.

    image

  4. Click the button alt [Save ] to save changes or click alt [Cancel] to exit edit mode without saving.

    image

Fields with the “Show in references” flag set will be displayed in the drop-down field.

Changing the field type

  1. Go to alt [Menu] > [Configuration] > [Projection properties] > [Selected entry] (or [Selected entity] > button alt [More] > button alt [Setup…] > container alt [Projection properties] > [Selected entry]).

  2. In the detailed form, click the button alt [Edit] to switch to edit mode.

  3. Change the value of the “Type on display” field. Description of values in Field values “Type on display”.

  4. Click the button alt ** [Save ] ** to save the changes or the button alt ** [Cancel ] ** to exit edit mode without saving.

Setting up automatic field display

Automatic display and hiding of fields by condition.

  1. Go to [Selected entity] > button alt [More] > button alt [Setup…].

  2. In the detailed form, click the button alt [Edit] to switch to edit mode.

  3. Enter in the field “Additional parameters”:

    {
      "property_visible": {
        "a": {
          "field":"b",
          "op":"EQ",
          "value": "c"
        },
       ...
      }
    }
    

    Instead of a, b and c enter:

    • instead of “a” - the name of the field (not the title), which should be displayed when the corresponding value appears in field “b”;
    • instead of “b” - the name of the field, which will serve as an indicator for the field a;
    • instead of “c” - the value, when it appears in the field “b”, the field “a” will be displayed.
  4. For one field, you can set several conditions:

        {
          "property_visible": {
                  "a": [{ 
                  "field":"b1", 
                  "op":"EQ", 
                  "value":"c1" 
                  },
                  { 
                  "field":"b2", 
                  "op":"EQ", 
                  "value":"c2" 
                  }
                ],
             ...
           }
        }
    

    Conditions are combined with the “AND” operation.

    If there are several fields that need to be hidden/displayed, then the lines are listed separated by commas inside the"property_visible" element.

  5. Click the button alt [Save] to save the changes or the button alt [Cancel] to exit edit mode without saving.

Setting up the automatic display of an empty field

Blank fields are displayed only when editing.

  1. Go to [Selected entity] > button alt [More] > button alt [Setup…].

  2. In the detailed form, click the button alt [Edit] to switch to edit mode.

  3. Enter in the “Additional parameters” field:

    {
        "hideEmptyFields":"a"
    }
    

    Instead of “a”, specify the value “true” or “false” to enable or disable the function, respectively.

    By default, the function has the value “false”.

  4. Click the button alt [Save] to save the changes or the button alt [Cancel] to exit edit mode without saving.