{ "custom": { "DOAS_tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_DOAS03", "data": [ "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_DOAS01", "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_DOAS02", "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_DOAS03" ], "selectedRoom": "SATB1_RF_DOAS03", "tagPath": "[Ignition_Common_IO_Gtwy]" }, "params": {}, "propConfig": { "custom.DOAS_tagPath": { "binding": { "config": { "path": "view.custom.selectedRoom" }, "transforms": [ { "code": "\treturn self.custom.tagPath +\"Roof/\"+ value", "type": "script" } ], "type": "property" }, "persistent": true }, "custom.data": { "binding": { "config": { "struct": { "tagPath": "{view.custom.tagPath}", "time": "now(3000)" }, "waitOnAll": true }, "enabled": false, "transforms": [ { "code": "\toutput \u003d []\n\ttags \u003d system.tag.browse(value[\"tagPath\"],{\"typeId\":\"Objects/Air/DOAS\", \"recursive\":True ,\"tagType\":\"UdtInstance\"})\n\tfor item in tags:\n\t\toutput.append(str(item[\"fullPath\"]))\n\treturn output", "type": "script" } ], "type": "expr-struct" }, "persistent": true }, "custom.selectedRoom": { "persistent": true }, "custom.tagPath": { "persistent": true } }, "props": { "defaultSize": { "width": 1200 } }, "root": { "children": [ { "children": [ { "meta": { "name": "DOAS_Diagram" }, "propConfig": { "props.params.tagPath": { "binding": { "config": { "path": "view.custom.DOAS_tagPath" }, "type": "property" } } }, "props": { "params": { "embedded": false, "objectName": "DOAS" }, "path": "Library/Diagrams/HVAC/Dgrm_DOAS", "style": { "overflow": "visible" } }, "type": "ia.display.view" } ], "meta": { "name": "Diagram" }, "position": { "basis": "70%", "grow": 1 }, "props": { "alignContent": "center", "alignItems": "center", "direction": "column", "justify": "center" }, "type": "ia.container.flex" }, { "children": [ { "meta": { "name": "Label" }, "props": { "text": "Roof" }, "type": "ia.display.label" }, { "meta": { "name": "FirstFloor Percent" }, "position": { "basis": "15%", "grow": 1 }, "props": { "path": "Library/Widgets/Layouts/RTU_Roof", "style": { "overflow": "visible" } }, "type": "ia.display.view" }, { "meta": { "name": "Label_0" }, "props": { "text": "Second Floor" }, "type": "ia.display.label" }, { "meta": { "name": "FirstFloor Percent_0" }, "position": { "basis": "15%", "grow": 1 }, "props": { "path": "Library/Widgets/Layouts/RTU_SecondFloor", "style": { "overflow": "visible" } }, "type": "ia.display.view" }, { "meta": { "name": "Label_2" }, "props": { "text": "First Floor" }, "type": "ia.display.label" }, { "meta": { "name": "FirstFloor Percent_1" }, "position": { "basis": "15%", "grow": 1 }, "props": { "path": "Library/Widgets/Layouts/RTU_FirstFloor", "style": { "overflow": "visible" } }, "type": "ia.display.view" }, { "meta": { "name": "Label_1" }, "props": { "text": "List of devices" }, "type": "ia.display.label" }, { "events": { "component": { "onRowClick": { "config": { "script": "\tpayload \u003d {\"Room\":self.props.selection.data[0].Tag}\n\tmessageType \u003d \"roomUpdate\"\n\tsystem.perspective.sendMessage(messageType, payload)\n\tmessageType \u003d \"layout_01_Update\"\n\tsystem.perspective.sendMessage(messageType, payload)\n\tmessageType \u003d \"layout_02_Update\"\n\tsystem.perspective.sendMessage(messageType, payload)\n\tmessageType \u003d \"layout_03_Update\"\n\tsystem.perspective.sendMessage(messageType, payload)" }, "scope": "G", "type": "script" } } }, "meta": { "name": "Table" }, "position": { "basis": "35%" }, "propConfig": { "props.data": { "binding": { "config": { "struct": { "paths": "{view.custom.data}", "time": "now(5000)" }, "waitOnAll": true }, "enabled": false, "transforms": [ { "code": "\toutput \u003d []\n\tdata \u003d value[\"paths\"]\n\tfor item in data:\n\t\ttry:\n\t\t\tAlmS \u003d alarm.summary.calcMaxPriority(item)\n\t\texcept:\n\t\t\tAlmS \u003d -1\n\t\tif(AlmS \u003d\u003d 1):\n\t\t\tAlarmSeverity \u003d \"Controller\"\n\t\telif(AlmS \u003d\u003d 2):\n\t\t\tAlarmSeverity \u003d \"Info\"\n\t\telif(AlmS \u003d\u003d 3):\n\t\t\tAlarmSeverity \u003d \"Warning\"\n\t\telif(AlmS \u003d\u003d 4):\n\t\t\tAlarmSeverity \u003d \"Critical\"\n\t\telse:\n\t\t\tAlarmSeverity \u003d \" \"\n\t\tRAT \u003d system.tag.readBlocking(item + \"/Return Air Temperature\")[0].value\n\t\tSAT \u003d system.tag.readBlocking(item + \"/Supply Air Temperature\")[0].value\n\t\t#Name \u003d system.tag.readBlocking(item + \"/Meta/EqName\")[0].value\n\t\tName \u003d item.split(\u0027_\u0027)[5]\n\t\t#Tag \u003d system.tag.readBlocking(item + \"/Meta/Ignition Tag Name\")[0].value\n\t\tTag \u003d item.split(\u0027/\u0027)[1]\n\t\ttagPath \u003d item\n\t\toutput.append({\n\t\t\t\t\t\t\"RAT\": RAT,\n\t\t\t\t\t\t\"SAT\": SAT,\n\t\t\t\t\t\t\"Name\": Name,\n\t\t\t\t\t\t\"Tag\": Tag,\n\t\t\t\t\t\t\"AlarmSeverity\": AlarmSeverity,\n\t\t\t\t\t\t\"tagPath\": tagPath})\n\treturn output", "type": "script" } ], "type": "expr-struct" } } }, "props": { "columns": [ { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "Name", "filter": { "boolean": { "condition": "" }, "date": { "condition": "", "value": "" }, "enabled": false, "number": { "condition": "", "value": "" }, "string": { "condition": "", "value": "" }, "visible": "on-hover" }, "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "justify": "auto", "nullFormat": { "includeNullStrings": false, "nullFormatValue": "", "strict": false }, "number": "value", "numberFormat": "0,0.##", "progressBar": { "bar": { "color": "", "style": { "classes": "" } }, "max": 100, "min": 0, "track": { "color": "", "style": { "classes": "" } }, "value": { "enabled": true, "format": "0,0.##", "justify": "center", "style": { "classes": "" } } }, "render": "auto", "resizable": true, "sort": "none", "sortable": true, "strictWidth": false, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "", "unselected": "" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": "" }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "SAT", "filter": { "boolean": { "condition": "" }, "date": { "condition": "", "value": "" }, "enabled": false, "number": { "condition": "", "value": "" }, "string": { "condition": "", "value": "" }, "visible": "on-hover" }, "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "Supply Air Temperature" }, "justify": "auto", "nullFormat": { "includeNullStrings": false, "nullFormatValue": "", "strict": false }, "number": "value", "numberFormat": "0,0.##", "progressBar": { "bar": { "color": "", "style": { "classes": "" } }, "max": 100, "min": 0, "track": { "color": "", "style": { "classes": "" } }, "value": { "enabled": true, "format": "0,0.##", "justify": "center", "style": { "classes": "" } } }, "render": "auto", "resizable": true, "sort": "none", "sortable": true, "strictWidth": false, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "", "unselected": "" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": "" }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "Tag", "filter": { "boolean": { "condition": "" }, "date": { "condition": "", "value": "" }, "enabled": false, "number": { "condition": "", "value": "" }, "string": { "condition": "", "value": "" }, "visible": "on-hover" }, "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "Tag" }, "justify": "auto", "nullFormat": { "includeNullStrings": false, "nullFormatValue": "", "strict": false }, "number": "value", "numberFormat": "0,0.##", "progressBar": { "bar": { "color": "", "style": { "classes": "" } }, "max": 100, "min": 0, "track": { "color": "", "style": { "classes": "" } }, "value": { "enabled": true, "format": "0,0.##", "justify": "center", "style": { "classes": "" } } }, "render": "auto", "resizable": true, "sort": "none", "sortable": true, "strictWidth": false, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "", "unselected": "" } }, "viewParams": {}, "viewPath": "", "visible": false, "width": "" }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "AlarmSeverity", "filter": { "boolean": { "condition": "" }, "date": { "condition": "", "value": "" }, "enabled": false, "number": { "condition": "", "value": "" }, "string": { "condition": "", "value": "" }, "visible": "on-hover" }, "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "Alarm Severity" }, "justify": "auto", "nullFormat": { "includeNullStrings": false, "nullFormatValue": "", "strict": false }, "number": "value", "numberFormat": "0,0.##", "progressBar": { "bar": { "color": "", "style": { "classes": "" } }, "max": 100, "min": 0, "track": { "color": "", "style": { "classes": "" } }, "value": { "enabled": true, "format": "0,0.##", "justify": "center", "style": { "classes": "" } } }, "render": "auto", "resizable": true, "sort": "none", "sortable": true, "strictWidth": false, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "", "unselected": "" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": "" } ], "data": [ { "AlarmSeverity": " ", "Name": "DOAS01", "RAT": null, "SAT": null, "Tag": "SATB1_RF_DOAS01", "tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_DOAS01" }, { "AlarmSeverity": " ", "Name": "DOAS02", "RAT": null, "SAT": null, "Tag": "SATB1_RF_DOAS02", "tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_DOAS02" }, { "AlarmSeverity": " ", "Name": "DOAS03", "RAT": null, "SAT": null, "Tag": "SATB1_RF_DOAS03", "tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_DOAS03" }, { "AlarmSeverity": " ", "Name": "DOAS04", "RAT": null, "SAT": null, "Tag": "SATB1_RF_DOAS04", "tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_DOAS03" }, { "AlarmSeverity": " ", "Name": "DOAS05", "RAT": null, "SAT": null, "Tag": "SATB1_RF_DOAS05", "tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_DOAS03" } ] }, "type": "ia.display.table" } ], "meta": { "name": "Location" }, "position": { "basis": "450px", "grow": 1 }, "props": { "direction": "column", "justify": "space-around", "style": { "backgroundColor": "var(--container)", "borderBottomLeftRadius": "var(--borderRadius)", "borderBottomRightRadius": "var(--borderRadius)", "borderTopLeftRadius": "var(--borderRadius)", "borderTopRightRadius": "var(--borderRadius)", "boxShadow": "var(--boxShadow2)", "overflow": "visible", "padding": 10 } }, "type": "ia.container.flex" } ], "meta": { "name": "root" }, "props": { "justify": "space-evenly", "style": { "backgroundColor": "var(--containerRoot)", "overflow": "visible", "padding": 15 } }, "scripts": { "customMethods": [], "extensionFunctions": null, "messageHandlers": [ { "messageType": "roomUpdate", "pageScope": true, "script": "\t# implement your handler here\n\tself.view.custom.selectedRoom \u003d payload[\"Room\"]", "sessionScope": false, "viewScope": false } ] }, "type": "ia.container.flex" } }