Overriding UI Element Options
You can override the settings of a particular action or UI element via its id or action name using the special overrides section in a configuration file. There are many examples of this provided. The following example demonstrates how to override the ED_TABS element definition to remove the EQUIPMENT_FAILURE tab (Note this JSON would be placed in $HOME/flex/client/tools/eventDetails.jsonc:
{
"overrides": {
"ED_TABS": {
"children": {
"remove": [
{ "id": "EQUIPMENT_FAILURE" }
]
}
}
}
}
The following example shows to update an existing table column and add a new table column to the event list:
{
"overrides": {
"EVENTS_TABLE": {
"config": {
"columns": {
// field combined with id is the unique key for
// matching columns on
"key": ["field", "id"],
// Update existing columns to give them a
// different order or label
// By default their order number matches the order
// defined in the base product configuration
// (with the first column
// being order 1)
"update": [
{
"field": "cond_status_name",
"order": 5
}
],
// Add some new columns that don't exist in base
// configuration
"add": [
{
"field": "ctrl_zone_name_7",
"label": "Substation",
"order": 3
}
]
}
}
}
}
}