{ "custom": { "state": 0, "string": "Idle" }, "params": { "tagProps": [ "value", "value", "value", "value", "value", "value", "value", "value", "value", "value" ] }, "propConfig": { "custom.state": { "binding": { "config": { "fallbackDelay": 1, "mode": "indirect", "references": { "0": "{view.params.tagProps[0]}", "fc": "{session.custom.fc}" }, "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE" }, "transforms": [ { "expression": "coalesce({value},{view.params.forceFaultStatus},0)", "type": "expression" }, { "fallback": 0, "inputType": "scalar", "mappings": [ { "input": 1, "output": 1 }, { "input": 2, "output": 2 }, { "input": 3, "output": 3 }, { "input": 4, "output": 4 }, { "input": 5, "output": 5 }, { "input": 6, "output": 6 }, { "input": 7, "output": 7 } ], "outputType": "scalar", "type": "map" } ], "type": "tag" }, "persistent": true }, "custom.string": { "binding": { "config": { "path": "view.custom.state" }, "transforms": [ { "fallback": "Unknown", "inputType": "scalar", "mappings": [ { "input": 0, "output": "Idle" }, { "input": 1, "output": "Actuated" } ], "outputType": "scalar", "type": "map" } ], "type": "property" }, "persistent": true }, "params.tagProps": { "paramDirection": "input", "persistent": true } }, "props": { "defaultSize": { "height": 30, "width": 30 } }, "root": { "children": [ { "meta": { "name": "EPC" }, "position": { "height": 1, "width": 1 }, "propConfig": { "meta.visible": { "binding": { "config": { "path": "session.custom.alarm_filter.show_epc" }, "type": "property" } }, "props.elements[2].fill.paint": { "binding": { "config": { "path": "view.custom.state" }, "transforms": [ { "fallback": "#00FF00", "inputType": "scalar", "mappings": [ { "input": 1, "output": "#FF0000" } ], "outputType": "color", "type": "map" } ], "type": "property" } } }, "props": { "elements": [ { "fill": { "paint": "#FFFF00" }, "height": "20", "name": "rect", "type": "rect", "width": "20", "x": "0", "y": "0" }, { "d": "M 0,0 H 20 V 20 H 0 Z", "fill": { "paint": "transparent" }, "name": "path", "stroke": { "paint": "#000000", "width": "1.5" }, "type": "path" }, { "d": "m 17,10.5 a 7,7 0 0 1 -7,7 7,7 0 0 1 -7,-7 7,7 0 0 1 7,-7 7,7 0 0 1 7,7 z", "fill": {}, "name": "path", "stroke": { "paint": "#000000", "width": "1" }, "type": "path" } ], "viewBox": "0 0 20 20" }, "type": "ia.shapes.svg" } ], "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_epc" }, "type": "property" } } }, "props": { "mode": "percent", "style": { "cursor": "pointer" } }, "type": "ia.container.coord" } }