From 81e6d7be7cee29bb5aec06549920431a445043f3 Mon Sep 17 00:00:00 2001 From: beka makharadze Date: Tue, 1 Jul 2025 11:55:21 +0400 Subject: [PATCH] Fix StatusNonPowered Docked-East --- .../view.json | 119 +++++++++--------- 1 file changed, 60 insertions(+), 59 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 2ce2af4..abeb034 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 @@ -6,7 +6,8 @@ "MCM03", "MCM04", "MCM05", - "MCM06" + "MCM06", + "MCM07" ], "running_state": -1, "state": 0, @@ -461,12 +462,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "FULL", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "NOT FULL", @@ -493,16 +494,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "NOT FULL", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "FULL" + }, + { + "input": 0, + "output": "NOT FULL" } ], "outputType": "scalar", @@ -610,15 +615,15 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { - "input": "DISABLED", - "output": "#FFFFFF" + "input": "TRUE", + "output": "#D5D5D5" }, { - "input": "ENABLED", + "input": "FALSE", "output": "#D5D5D5" } ], @@ -642,16 +647,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus}, \"UNKNOWN\")", "type": "expression" }, { - "fallback": "ENABLED", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, - "output": "DISABLED" + "output": "TRUE" + }, + { + "input": 0, + "output": "FALSE" } ], "outputType": "scalar", @@ -672,12 +681,12 @@ "inputType": "scalar", "mappings": [ { - "input": "ENABLED", - "output": "#47FF47" + "input": "TRUE", + "output": "#FF0000" }, { - "input": "DISABLED", - "output": "#FF0000" + "input": "FALSE", + "output": "#47FF47" } ], "outputType": "color", @@ -797,12 +806,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "HALF FULL", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "NOT HALF FULL", @@ -829,16 +838,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "NOT HALF FULL", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "HALF FULL" + }, + { + "input": 0, + "output": "NOT HALF FULL" } ], "outputType": "scalar", @@ -860,7 +873,7 @@ "mappings": [ { "input": "HALF FULL", - "output": "#7F83FF" + "output": "#FFF000" }, { "input": "NOT HALF FULL", @@ -984,12 +997,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "JAMMED", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "NOT JAMMED", @@ -1016,16 +1029,20 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "NOT JAMMED", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "JAMMED" + }, + { + "input": 0, + "output": "NOT JAMMED" } ], "outputType": "scalar", @@ -1171,12 +1188,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "NO CONTAINER", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "CONTAINER PRESENT", @@ -1199,20 +1216,24 @@ "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, - "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/No Container" + "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/No_Container" }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { - "fallback": "CONTAINER PRESENT", + "fallback": "UNKNOWN", "inputType": "scalar", "mappings": [ { "input": 1, "output": "NO CONTAINER" + }, + { + "input": 0, + "output": "CONTAINER PRESENT" } ], "outputType": "scalar", @@ -1354,12 +1375,12 @@ }, "transforms": [ { - "fallback": "#000000", + "fallback": "#FFFFFF", "inputType": "scalar", "mappings": [ { "input": "READY", - "output": "#FFFFFF" + "output": "#D5D5D5" }, { "input": "ENABLED", @@ -1553,33 +1574,9 @@ "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" + "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"DISABLE\",\r\n \"#FF0000\",\r\n if(\r\n {this.props.text} \u003d \"ENABLE\",\r\n \"#C9FCC0\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" }, - "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" + "type": "expr" } }, "props.style.color": { @@ -1627,7 +1624,7 @@ }, "transforms": [ { - "expression": "coalesce({value},{view.params.forceFaultStatus},0)", + "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")", "type": "expression" }, { @@ -1637,6 +1634,10 @@ { "input": 1, "output": "ENABLE" + }, + { + "input": 0, + "output": "DISABLE" } ], "outputType": "scalar",