{ "custom": { "state": 0, "string": "Unknown" }, "params": { "tagProps": [ "/system/mcm01/test", "value", "value", "value", "value", "value", "value", "value", "value", "value" ] }, "propConfig": { "custom.state": { "binding": { "config": { "fallbackDelay": 2.5, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" }, "transforms": [ { "expression": "coalesce({value},0)", "type": "expression" }, { "fallback": null, "inputType": "scalar", "mappings": [ { "input": 1, "output": 1 }, { "input": 0, "output": 0 }, { "input": 2, "output": 2 }, { "input": 3, "output": 3 } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.string": { "binding": { "config": { "path": "view.custom.state" }, "transforms": [ { "fallback": "Unknown", "inputType": "scalar", "mappings": [ { "input": 1, "output": "OK" }, { "input": 2, "output": "Faulted" } ], "outputType": "scalar", "type": "map" } ], "type": "property" }, "persistent": true }, "params.tagProps": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 20, "width": 40 } }, "root": { "children": [ { "meta": { "name": "Label" }, "position": { "height": 1, "width": 1 }, "props": { "style": { "paddingBottom": 1, "paddingLeft": 1, "paddingRight": 1, "paddingTop": 1 }, "text": "SIO", "textStyle": { "fontSize": "1vw", "textAlign": "center", "textTransform": "uppercase" } }, "type": "ia.display.label" } ], "events": { "dom": { "onClick": { "config": { "script": "\t#create tags lists for the device\n\tprops \u003d self.view.params.tagProps\n\ttags_table_dataset \u003d autStand.devices.getAllTags(self, props[0])\n\tsystem.perspective.openDock(\u0027Docked-East-Device\u0027,params\u003d{\u0027tagProps\u0027:props, \"tags\":tags_table_dataset})" }, "scope": "G", "type": "script" } } }, "meta": { "name": "root", "tooltip": { "enabled": true } }, "propConfig": { "meta.tooltip.text": { "binding": { "config": { "expression": "\"Source Id: \" + {view.params.tagProps[0]} + \", Status: \" + {view.custom.string}\n" }, "type": "expr" } }, "meta.visible": { "binding": { "config": { "path": "session.custom.alarm_filter.show_fio_safety" }, "type": "property" } }, "props.style.backgroundColor": { "binding": { "config": { "path": "view.custom.state" }, "transforms": [ { "fallback": "#808080", "inputType": "scalar", "mappings": [ { "input": 1, "output": "#00FF00" }, { "input": 2, "output": "#FF0000" } ], "outputType": "color", "type": "map" } ], "type": "property" } } }, "props": { "mode": "percent", "style": { "borderStyle": "solid", "cursor": "pointer", "overflow": "hidden", "userSelect": "none" } }, "type": "ia.container.coord" } }