You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 40 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
- Navigate to System Definition → Column Overrides.
- Click New and fill in the fields.
- Click Save or Save and Exit to apply changes.
Column Override form fields
Field | Mandatory | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Base Table | Y | Select a table containing the field to override. | |||||||||||||||
Table | Y | In this dictionary field, you can select the child table that will be affected by overriding. | |||||||||||||||
Column | Y | In this dictionary field, you can select a column to be overridden. | |||||||||||||||
Display by Ref Override | N | Select this checkbox if you need to override the Display by Ref setting, which defines the column to be displayed instead of reference IDs. | |||||||||||||||
Default Value Override | N | Select this checkbox to display the Default Value field.
Please note that using overriding for read-only fields having dynamic default value may cause validation errors. As a workaround, you can set read-only attribute for these fields with a client script using the SimpleForm methods. | |||||||||||||||
Dependent on Column ID Override | N | Select this checkbox to display the Dependent on Column field.
| |||||||||||||||
Reference Qualifier Override | N | Select the checkbox to display the Reference Qualifiers fieldset, which overrides the reference qualifier for the field on the extended table.
| |||||||||||||||
Title Override | N | Select the checkbox to display the Title field, which overrides the field title in the extended table. That is, a child table will inherit the properties of the parent table's column, but the title will be different.
| |||||||||||||||
Mandatory Override | N | Select the checkbox to display the Mandatory checkbox, which overrides whether the field on the extended table must contain a value to save a record. | |||||||||||||||
Read Only Override | N | Select this checkbox to display the Read Only checkbox, which overrides whether a user can change the field value in the extended table. |
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 check 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:
- Base Table – select a base table.
- Table – select the same table.
- Column – select a column you need to override.
- Specify an attribute you are going to override. These column attributes can be overridden:
- Mandatory
- Read Only
- Display by Ref
- Reference Qualifier
- Dependent on Column
- Default Value.
- Specify new attribute value.
- Click Save or Save and Exit to apply changes.
To be more specific, have a look at 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.
- No labels