138 lines
3.5 KiB
Plaintext
138 lines
3.5 KiB
Plaintext
{
|
|
"custom": {
|
|
"DOAS_tagPath": "[Ignition_Common_IO_Gtwy]Roof/DOAS1",
|
|
"data": [
|
|
"[Ignition_Common_IO_Gtwy]Roof/DOAS1",
|
|
"[Ignition_Common_IO_Gtwy]Roof/DOAS2",
|
|
"[Ignition_Common_IO_Gtwy]Roof/DOAS3"
|
|
],
|
|
"key": null,
|
|
"key_1": "value",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]"
|
|
},
|
|
"params": {},
|
|
"propConfig": {
|
|
"custom.DOAS_tagPath": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "view.custom.key"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\toutput \u003d \"\"\n\tif(value is None):\n\t\toutput \u003d \"[Ignition_Common_IO_Gtwy]Roof/DOAS1\"\n\telse:\n\t\toutput \u003d self.custom.data[value]\n\treturn output",
|
|
"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.key": {
|
|
"binding": {
|
|
"config": {
|
|
"path": "/root/Location/Table.props.selection.selectedRow"
|
|
},
|
|
"transforms": [
|
|
{
|
|
"code": "\tif(value \u003d\u003d \"null\"):\n\t\tvalue \u003d 0\n\treturn value",
|
|
"type": "script"
|
|
}
|
|
],
|
|
"type": "property"
|
|
},
|
|
"persistent": true
|
|
},
|
|
"custom.key_1": {
|
|
"persistent": true
|
|
},
|
|
"custom.tagPath": {
|
|
"persistent": true
|
|
}
|
|
},
|
|
"props": {
|
|
"defaultSize": {
|
|
"width": 1200
|
|
}
|
|
},
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"meta": {
|
|
"name": "FlexRepeater"
|
|
},
|
|
"props": {
|
|
"instances": [
|
|
{
|
|
"embedded": false,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"objectName": "ESP",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]ELEV1124/SATB1_ELEV1124_ESP1"
|
|
},
|
|
{
|
|
"embedded": false,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"objectName": "ESP",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]ELEV1130/SATB1_ELEV1124_ESP2"
|
|
},
|
|
{
|
|
"embedded": false,
|
|
"instancePosition": {},
|
|
"instanceStyle": {
|
|
"classes": ""
|
|
},
|
|
"objectName": "ESP",
|
|
"tagPath": "[Ignition_Common_IO_Gtwy]ELEV1131/SATB1_ELEV1124_ESP3"
|
|
}
|
|
],
|
|
"path": "Library/Symbols/Mechanical/Sym_SP",
|
|
"style": {
|
|
"gap": 100,
|
|
"overflow": "visible"
|
|
}
|
|
},
|
|
"type": "ia.display.flex-repeater"
|
|
}
|
|
],
|
|
"meta": {
|
|
"name": "root"
|
|
},
|
|
"props": {
|
|
"alignContent": "center",
|
|
"alignItems": "center",
|
|
"direction": "column",
|
|
"justify": "center",
|
|
"style": {
|
|
"gap": 50,
|
|
"overflow": "visible",
|
|
"padding": 15
|
|
}
|
|
},
|
|
"type": "ia.container.flex"
|
|
}
|
|
} |