{ "custom": { "AlarmSeverity": 0, "AlarmSeverity_Info": 0, "Status": false, "Status_Info": "value" }, "params": { "TagPosition": false, "layout": 1, "objectName": "DiscreteIn", "objectName_Info": "LD", "tagPath": "[Ignition_Common_IO_Gtwy]GAL1261/SATB1_GAL1261_LD_DI", "tagPath_Info": "[Ignition_SATB1_IO1_default]GAL1261/SATB1_DH1_LD1_CTRL" }, "propConfig": { "custom.AlarmSeverity": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}" }, "enabled": false, "transforms": [ { "code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)", "type": "script" } ], "type": "tag" }, "persistent": true }, "custom.AlarmSeverity_Info": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath_Info": "{view.params.tagPath_Info}" }, "tagPath": "{tagPath_Info}" }, "enabled": false, "transforms": [ { "code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)", "type": "script" } ], "type": "tag" }, "persistent": true }, "custom.Status": { "binding": { "config": { "struct": { "as1": "{view.custom.AlarmSeverity}", "as2": "{view.custom.AlarmSeverity_Info}" }, "waitOnAll": true }, "transforms": [ { "code": "\tif value[\u0027as1\u0027] \u003e 0 or value[\u0027as2\u0027] \u003e 0:\n\t\treturn True\n\telse:\n\t\treturn False", "type": "script" } ], "type": "expr-struct" }, "persistent": true }, "custom.Status_Info": { "persistent": true }, "params.TagPosition": { "paramDirection": "input", "persistent": true }, "params.layout": { "paramDirection": "input", "persistent": true }, "params.objectName": { "paramDirection": "input", "persistent": true }, "params.objectName_Info": { "paramDirection": "input", "persistent": true }, "params.tagPath": { "paramDirection": "input", "persistent": true }, "params.tagPath_Info": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 83, "width": 76 } }, "root": { "children": [ { "meta": { "name": "Label" }, "position": { "height": 14, "width": 72 }, "propConfig": { "props.alignVertical": { "binding": { "config": { "path": "view.params.TagPosition" }, "transforms": [ { "fallback": "top", "inputType": "scalar", "mappings": [ { "input": false, "output": "bottom" }, { "input": true, "output": "top" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.text": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Meta/EqName" }, "enabled": false, "type": "tag" } } }, "props": { "text": "LD", "textStyle": { "color": "var(--olGray)", "fontFamily": "inherit", "fontSize": 12, "paddingLeft": 8, "textAlign": "start" } }, "type": "ia.display.label" }, { "meta": { "name": "Container" }, "position": { "height": 68, "width": 72, "y": 14 }, "propConfig": { "props.style.backgroundColor": { "binding": { "config": { "path": "view.custom.Status" }, "transforms": [ { "fallback": "var(--state-standby)", "inputType": "scalar", "mappings": [ { "input": false, "output": "var(--state-standby)" }, { "input": true, "output": "var(--state-faulted)" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } } }, "props": { "style": { "borderColor": "var(--olGray)", "borderStyle": "solid", "borderWidth": 1.5 } }, "type": "ia.display.label" }, { "meta": { "name": "Var01" }, "position": { "height": 32, "width": 70, "y": 17 }, "propConfig": { "props.text": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "tagPath": "{view.params.tagPath}" }, "tagPath": "{tagPath}/Alarms/Alarm Target Disagree" }, "enabled": false, "transforms": [ { "fallback": "error", "inputType": "scalar", "mappings": [ { "input": false, "output": "No Leak Detected" }, { "input": true, "output": "Leak Detected" } ], "outputType": "scalar", "type": "map" } ], "type": "tag" } } }, "props": { "text": "No Leak Detected", "textStyle": { "color": "var(--tagvalue-color)", "fontSize": 12, "textAlign": "center" } }, "type": "ia.display.label" }, { "events": { "dom": { "onClick": { "config": { "script": "\tpageId \u003d self.page.props.pageId\n\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\n\ttagPath \u003d self.view.params.tagPath\n\tobjectName \u003d self.view.params.objectName\n\tutils.nav.openEQPopup(objectName, tagPath)" }, "scope": "G", "type": "script" } } }, "meta": { "name": "Box" }, "position": { "height": 32, "width": 67, "x": 1, "y": 16 }, "propConfig": { "props.style.outlineColor": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "transforms": [ { "fallback": "none", "inputType": "scalar", "mappings": [ { "input": -1, "output": "white" }, { "input": 0, "output": "white" }, { "input": 1, "output": "var(--coolpurple)" }, { "input": 2, "output": "var(--goldenyellow)" }, { "input": 3, "output": "var(--sunsetorange)" }, { "input": 4, "output": "var(--alarmred)" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } }, "props.style.outlineStyle": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "transforms": [ { "fallback": "none", "inputType": "scalar", "mappings": [ { "input": -1, "output": "none" }, { "input": 0, "output": "none" }, { "input": 1, "output": "solid" }, { "input": 2, "output": "solid" }, { "input": 3, "output": "solid" }, { "input": 4, "output": "solid" } ], "outputType": "scalar", "type": "map" } ], "type": "property" } } }, "props": { "style": { "classes": "containers/HoverOver", "outlineWidth": 3 } }, "type": "ia.display.label" }, { "meta": { "name": "AlarmIcons" }, "position": { "height": 21, "width": 20.36, "x": 61.9970703125, "y": 3.4990234375 }, "propConfig": { "props.params.AlarmSeverity": { "binding": { "config": { "path": "view.custom.AlarmSeverity" }, "type": "property" } } }, "props": { "path": "Library/Alarms/Icons" }, "type": "ia.display.view" }, { "meta": { "name": "Container_0" }, "position": { "height": 22, "width": 62, "x": 5, "y": 54 }, "propConfig": { "props.style.backgroundColor": { "binding": { "config": { "path": "view.custom.AlarmSeverity_Info" }, "transforms": [ { "code": "\tif value \u003e 0:\n\t\treturn \"var(--state-faulted)\"\n\telse:\n\t\treturn \"var(--state-standby)\"", "type": "script" } ], "type": "property" } }, "props.style.color": { "binding": { "config": { "path": "view.custom.AlarmSeverity_Info" }, "transforms": [ { "code": "\tif value \u003e 0:\n\t\treturn \"White\"\n\telse:\n\t\treturn \"Gray\"", "type": "script" } ], "type": "property" } } }, "props": { "style": { "borderBottomLeftRadius": 4, "borderBottomRightRadius": 4, "borderColor": "var(--olGray)", "borderStyle": "solid", "borderTopLeftRadius": 4, "borderTopRightRadius": 4, "borderWidth": 1.5 } }, "type": "ia.display.label" }, { "events": { "dom": { "onClick": { "config": { "script": "\tpageId \u003d self.page.props.pageId\n\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\n\ttagPath \u003d self.view.params.tagPath_Info\n\tobjectName \u003d self.view.params.objectName_Info\n\tutils.nav.openEQPopup(objectName, tagPath)" }, "scope": "G", "type": "script" } } }, "meta": { "name": "Label_0" }, "position": { "height": 20, "width": 58.36, "x": 5, "y": 55.29 }, "propConfig": { "props.textStyle.color": { "binding": { "config": { "path": "view.custom.AlarmSeverity_Info" }, "enabled": false, "transforms": [ { "code": "\tif value \u003e 0:\n\t\treturn \"white\"\n\telse:\n\t\treturn \"darkgrey\"", "type": "script" } ], "type": "property" } } }, "props": { "text": "Info", "textStyle": { "classes": "containers/HoverOver", "color": "black", "fontFamily": "inherit", "fontSize": 12, "paddingLeft": 0, "textAlign": "center" } }, "type": "ia.display.label" } ], "meta": { "name": "root" }, "props": { "style": { "overflow": "visible" } }, "type": "ia.container.coord" } }