{ "custom": { "data": [ "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_EcoStruxure_OPC_UA_Server_Expert", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_Ignition_OPC_UA_Server", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_26", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_27", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_28", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_29", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_30", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_31", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_32", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_33", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_34", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_35", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_37", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_38", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_45", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_51", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_57", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_58", "[Ignition_Common_IO_Gtwy]OPC/SATB1_OPC_PNL_61", "[Ignition_SATB1_IO1_default]OPC/SATB1_OPC_Ignition_OPC_UA_Server", "[Ignition_SATB1_IO1_default]OPC/SATB1_OPC_PNL_52", "[Ignition_SATB1_IO1_default]OPC/SATB1_OPC_PNL_53", "[Ignition_SATB1_IO1_default]OPC/SATB1_OPC_PNL_54", "[Ignition_SATB1_IO1_default]OPC/SATB1_OPC_PNL_55", "[Ignition_SATB1_IO1_default]OPC/SATB1_OPC_PNL_56", "[Ignition_SATB1_IO2_default]OPC/SATB1_OPC_Ignition_OPC_UA_Server", "[Ignition_SATB1_IO2_default]OPC/SATB1_OPC_PNL_46", "[Ignition_SATB1_IO2_default]OPC/SATB1_OPC_PNL_47", "[Ignition_SATB1_IO2_default]OPC/SATB1_OPC_PNL_48", "[Ignition_SATB1_IO2_default]OPC/SATB1_OPC_PNL_49", "[Ignition_SATB1_IO2_default]OPC/SATB1_OPC_PNL_50" ], "tagPath": [ "[Ignition_Common_IO_Gtwy]", "[Ignition_SATB1_IO1_default]", "[Ignition_SATB1_IO2_default]", "[Ignition_SATB1_IO4_default]" ] }, "params": {}, "propConfig": { "custom.data": { "binding": { "config": { "struct": { "tagPaths": "{view.custom.tagPath}", "time": "now(3000)" }, "waitOnAll": true }, "enabled": false, "transforms": [ { "code": "\toutput \u003d []\n\tfor path in value[\u0027tagPaths\u0027]:\n\t\ttags \u003d system.tag.browse(path,{\"typeId\":\"Objects/Network/OPC_Status\", \"recursive\":True ,\"tagType\":\"UdtInstance\"})\n\t\tfor item in tags:\n\t\t\toutput.append(str(item[\"fullPath\"]))\n\treturn output", "type": "script" } ], "type": "expr-struct" }, "persistent": true }, "custom.tagPath": { "persistent": true } }, "props": { "defaultSize": { "width": 1200 } }, "root": { "children": [ { "custom": { "data": "value" }, "meta": { "name": "Table" }, "position": { "basis": "100%" }, "propConfig": { "props.data": { "binding": { "config": { "struct": { "paths": "{view.custom.data}", "time": "now(5000)" }, "waitOnAll": true }, "transforms": [ { "code": "\toutput \u003d []\n\tdata \u003d value[\"paths\"]\n\tfor item in data:\n\t\tgateway_array \u003d item.split(\u0027]\u0027)\n\t\tgateway \u003d gateway_array[0][1:]\n\t\topc_array \u003d item.split(\u0027SATB1_OPC_\u0027)\n\t\topc \u003d opc_array[-1]\n\t\topc \u003d opc.replace(\"_\", \" \")\n\t\tinstance \u003d system.tag.readBlocking(item)[0].value\n\t\tmeta \u003d instance[\u0027Meta\u0027]\n\t\tdesc \u003d meta[\u0027EqName\u0027]\n\t\tconnected \u003d instance[\"Connected\"]\n\t\tenabled \u003d instance[\"Enabled\"]\n\t\tstate \u003d instance[\"State\"]\n\t\tif state \u003d\u003d \"FAULTED\":\n\t\t\tstyle \u003d {\"backgroundColor\": \"#FF0000A8\", \"color\":\"white\"}\n\t\telse:\n\t\t\tstyle \u003d {\"backgroundColor\": \"\", \"color\":\"\"}\n\t\toutput.append({ \"Gateway\": gateway,\n\t\t\t\t\t\t\"OPC\": opc,\n\t\t\t\t\t\t\"Description\": desc,\n\t\t\t\t\t\t\"Enabled\": enabled,\n\t\t\t\t\t\t\"Connected\": connected,\n\t\t\t\t\t\t\"State\": {\"value\":state, \"style\": style}\n\t\t\t\t\t\t})\n\treturn output", "type": "script" } ], "type": "expr-struct" } } }, "props": { "columns": [ { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "Gateway", "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": "", "paddingLeft": "10px" }, "toggleSwitch": { "color": { "selected": "", "unselected": "" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": "" }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "OPC", "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": "Description", "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": "Description" }, "justify": "auto", "nullFormat": { "includeNullStrings": false, "nullFormatValue": "Offline", "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": "Enabled", "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": "0%" }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "Connected", "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": "State", "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.##%", "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": "", "paddingLeft": "10px" }, "toggleSwitch": { "color": { "selected": "", "unselected": "" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": "" } ], "filter": { "enabled": true }, "style": { "backgroundColor": "#FF0000A8" } }, "type": "ia.display.table" } ], "meta": { "name": "root" }, "props": { "direction": "column" }, "type": "ia.container.flex" } }