Relations between parameters
Relations allow data to be transferred automatically from one task field to another. This eliminates the need to enter related values manually.

For example, when a vehicle is selected, the system can:
-
identify the associated driver
-
insert the vehicle number
-
fill in the model or other characteristics
-
transfer the vehicle ID to a system field
-
restrict the list of available values
How a relation works
A relation consists of several elements:
-
Source field — the field from which the value is taken
-
Default handbook — the handbook linked to the source field
-
System field to insert — the key or value to be transferred
-
Target field — the field to which the value is transferred
-
Choose another source field — an additional source that can be used instead of the main source
-
Pass all values — transfers all available values rather than only one selected value
After a value is selected in the source field, the system finds the related data and automatically inserts the required value into the target field.
Source field
In the Source field field, select the parameter that triggers the relation.

The list may include:
-
the system field Vehicle
-
the system field Driver
-
template parameters
-
combobox fields
-
other fields available in the task card
After you select a field, the system displays its type. This helps verify that the field is suitable for the selected relation.
System field to insert
If the source is a system field, such as Vehicle, the system displays the available keys:
-
c_vehicle_id
-
number
-
device_id
-
agent_id
-
model
-
is_busy
-
other system values
Select the key to be transferred to the target field.
For example:
-
number— vehicle number
-
c_vehicle_id— vehicle ID
-
driver_id— driver ID
-
model— vehicle model
The value type is displayed in the Format column, for example string, integer, or bool.
Target field
In the Target field field, select the parameter that should receive the value.

The list may include:
-
Driver
-
Vehicle
-
Client
-
Address list
-
Start time
-
End time
-
Description
-
custom template parameters
The target field must be compatible with the source value in terms of meaning and data type.
Additional relation settings

Choose another source field
The Choose another source field checkbox allows you to specify an additional data source for the same relation.
Use this option when the value may depend on several fields. For example, the result may depend on both the selected vehicle and its model.
Pass all values
The Pass all values checkbox transfers all available values from the source.
Use this option when the target field requires a complete set of related data rather than a single selected item. Enable it only when required by the template logic.
Adding a relation
1. Open the required template
2. Open the Parameters section
3. Click Relations
4. Click Add

5. Select a source field, for example Vehicle (System field).
The source field type is filled in automatically as combobox.

6. Select the key to insert, for example driver_id
7. Select the target field, for example Driver (System field) (combobox)

8. Enable additional settings if necessary
9. Click Save

In this example, the driver is inserted automatically after a vehicle is selected.

After saving, verify the relation in a new task card:
1. Select a vehicle in the Vehicle field.
2. The system retrieves the driver_id associated with the selected vehicle.
3. The corresponding driver is automatically inserted into the Driver field.
