Files
Stream_PHX_A7/Gateways/FE/projects/.resources/83c556349dc560929b6d59892ebbcde46b5474bbee99ebbce5d180101223c4e9

171 lines
4.4 KiB
Plaintext

{
"custom": {
"RTU_tagPath": "[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_RTU02",
"auth": {
"almAck": false,
"almShelve": false,
"config": false,
"control": false
},
"data": [
"[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_RTU01",
"[Ignition_Common_IO_Gtwy]Roof/SATB1_RF_RTU02"
],
"room": "SATB1_RF_RTU02",
"tagPath": "[Ignition_Common_IO_Gtwy]Roof"
},
"params": {},
"propConfig": {
"custom.RTU_tagPath": {
"binding": {
"config": {
"path": "view.custom.room"
},
"transforms": [
{
"code": "\treturn self.custom.tagPath + \"/\"+ value",
"type": "script"
}
],
"type": "property"
},
"persistent": true
},
"custom.auth": {
"binding": {
"config": {
"path": "session.props.auth.user.roles"
},
"transforms": [
{
"code": "\treturn utils.roles.validate(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/RTU-1\", \"recursive\":True ,\"tagType\":\"UdtInstance\"})\n\tfor item in tags:\n\t\ttagPath \u003d str(item[\"fullPath\"])\n\t\toutput.append(tagPath)\n\t\ttags \u003d system.tag.browse(value[\"tagPath\"],{\"typeId\":\"Objects/Air/RTU-2\", \"recursive\":True ,\"tagType\":\"UdtInstance\"})\n\tfor item in tags:\n\t\ttagPath \u003d str(item[\"fullPath\"])\n\t\toutput.append(tagPath)\n\treturn output",
"type": "script"
}
],
"type": "expr-struct"
},
"persistent": true
},
"custom.room": {
"persistent": true
},
"custom.tagPath": {
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 1000,
"width": 1276
}
},
"root": {
"children": [
{
"meta": {
"name": "RTU Diagram"
},
"position": {
"shrink": 0
},
"propConfig": {
"props.params.objectName": {
"binding": {
"config": {
"path": "view.custom.room"
},
"transforms": [
{
"code": "\toutput \u003d value.split(\"_\")\n\treturn output[2]",
"type": "script"
}
],
"type": "property"
}
},
"props.params.tagPath": {
"binding": {
"config": {
"path": "view.custom.RTU_tagPath"
},
"type": "property"
}
},
"props.path": {
"binding": {
"config": {
"path": "view.custom.room"
},
"enabled": false,
"transforms": [
{
"code": "\tsplit \u003d value.split(\"_\")\n\treturn \"Pages/Dev/C_AirSystem/Diagrams/\" + split[2]",
"type": "script"
}
],
"type": "property"
}
}
},
"props": {
"params": {
"embedded": false
},
"path": "Library/Diagrams/HVAC/Dgrm_RTU",
"style": {
"overflow": "visible"
}
},
"type": "ia.display.view"
}
],
"meta": {
"name": "root"
},
"props": {
"alignContent": "center",
"alignItems": "center",
"direction": "column",
"justify": "center",
"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.room \u003d payload[\"Room\"]",
"sessionScope": false,
"viewScope": false
}
]
},
"type": "ia.container.flex"
}
}