From fcab83262d0d87e1121650d1d3ce7dd0ba45ee3a Mon Sep 17 00:00:00 2001 From: "b.makharadze" <81828475+bmidf@users.noreply.github.com> Date: Fri, 13 Jun 2025 10:51:52 +0400 Subject: [PATCH] Fix errors for info tab change enable button --- .../view.json | 118 +++++++++++++++++- 1 file changed, 114 insertions(+), 4 deletions(-) diff --git a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-StatusNonPowered/view.json b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-StatusNonPowered/view.json index 55d8348..abb91ec 100644 --- a/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-StatusNonPowered/view.json +++ b/SCADA_PERSPECTIVE_PARENT_PROJECT/com.inductiveautomation.perspective/views/PopUp-Views/Controller-Equipment/Information-Docked-East-StatusNonPowered/view.json @@ -471,6 +471,10 @@ "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled" }, "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, { "fallback": "ENABLED", "inputType": "scalar", @@ -616,6 +620,10 @@ "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Full" }, "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, { "fallback": "NOT FULL", "inputType": "scalar", @@ -761,6 +769,10 @@ "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Half_Full" }, "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, { "fallback": "NOT HALF FULL", "inputType": "scalar", @@ -906,6 +918,10 @@ "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Jam" }, "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, { "fallback": "NOT JAMMED", "inputType": "scalar", @@ -1032,19 +1048,113 @@ }, "type": "expr" } + }, + "props.style.backgroundColor": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled" + }, + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "#FF0000", + "inputType": "scalar", + "mappings": [ + { + "input": 1, + "output": "#C9FCC0" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "tag" + } + }, + "props.style.color": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled" + }, + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "#FFFFFF", + "inputType": "scalar", + "mappings": [ + { + "input": 1, + "output": "#000000" + } + ], + "outputType": "color", + "type": "map" + } + ], + "type": "tag" + } + }, + "props.text": { + "binding": { + "config": { + "fallbackDelay": 2.5, + "mode": "indirect", + "references": { + "0": "{view.params.tagProps[0]}", + "fc": "{session.custom.fc}" + }, + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled" + }, + "transforms": [ + { + "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "type": "expression" + }, + { + "fallback": "DISABLE", + "inputType": "scalar", + "mappings": [ + { + "input": 1, + "output": "ENABLE" + } + ], + "outputType": "scalar", + "type": "map" + } + ], + "type": "tag" + } } }, "props": { "image": { "icon": { - "path": "material/sync_problem" + "path": "material/cached" } }, "style": { - "backgroundColor": "#FE9240", "classes": "Background-Styles/Controller" - }, - "text": "ENABLE" + } }, "type": "ia.input.button" }