You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 26 Next »

Override functionality allows to change column value and attributes in the child tables extended from the base table. For example, a column override changes the default value of the Impact field from Low in the Task table to Medium in the Incident table.

Role required: admin.

How to define a column override


  1. Navigate to System Definition → Column Overrides.
  2. Click New and fill in the fields.
  3. Click Save or Save and Exit to apply changes.

Column Override form fields

FieldMandatoryDescription
Base TableY

In this dictionary field, you can select the uppermost (in terms of inheritance) table containing the field to override.

TableYIn this dictionary field, you can select the child table that will be affected by overriding.
ColumnYIn this dictionary field, you can select a column to be overridden.
Display by Ref OverrideNSelect this checkbox if you need to override the Display by Ref setting which is responsible for what column will be displayed instead of reference IDs.

Default Value Override

N

Select this checkbox to display the Default Value field, which overrides the default value for the field on the extended table.

After selecting this checkbox, the Default Value field appears. Enter the default value that will override the original one. 

Reference Qualifier OverrideN

Select the checkbox to display the Reference Qualifiers fieldset, which overrides the reference qualifier for the field on the extended table.

  • Reference - in this field, select a table to which the overriding column is referenced to.
  • Reference Qualifier Type - choose your reference qualifier type, is it Simple or Dynamic.
  • Reference Qualifier Condition - build a reference filter that will fit the necessary conditions.
  • Dynamic Reference Qualifier - if you have chosen the Dynamic type from the choice menu above, then select the appropriate one from the dictionary.
Mandatory OverrideNSelect the checkbox to display the Mandatory field, which overrides whether the field on the extended table must contain a value to save a record.
Read Only OverrideN

Select this checkbox to display the Read Only field, which overrides whether a user can change the field value on the extended table.

Dependent on Column ID OverrideN

Select this checkbox to display the Dependent on Column field, which overrides the field on which the current field depends.

Override example

As an example, you may need to override some column where the base table and the child table are the same. This can help as a workaround in case if you need to change some protected column options before they are changed correctly.

When doing this, please keep in mind that inaccurate changes may harm your system, so recheck twice, and verify on some testing instance firstly if possible. 

To perform such override, please fill in the fields as described below when filling in the column overriding form:

  1. Base Table - select a base table.
  2. Table - select the same table.
  3. Column - select a column you need to override.
  4. Specify an attribute you are going to override. These column attributes can be overridden:
    1. Mandatory
    2. Read Only
    3. Display by Ref
    4. Reference Qualifier
    5. Dependent on Column
    6. Default Value
  5. Specify new attribute value.
  6. Click Save or Save and Exit to apply changes.

To be more specific, have a look on the screenshot below. It shows the Mandatory attribute overriding of the IT Service column related to the Agreement table.

Defining an override for choice fields

When creating a choice-like field (for example, Choice), it is recommended to set text values in the Value field to increase code readability. For example, it can be Incoming, or Active, or Failed values.

Regarding task states, it makes sense to make values numerical; this can help with selection construction (see the code sample below).

addQuery
task.addQuery('state', '>', '2'); // all states after In Progress

  • No labels