Files
Stream_PHX_A7/Gateways/FE/projects/.resources/1d33bd343d5e79843e5d0c117da791b700fa5a175944d590da222f46db493c62

252 lines
6.8 KiB
Plaintext

{
"custom": {},
"params": {},
"props": {
"defaultSize": {
"height": 437
}
},
"root": {
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"basis": "48px"
},
"props": {
"style": {
"classes": "Framework/Card/Title"
},
"text": "Find Tag"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Table"
},
"position": {
"basis": "352px"
},
"propConfig": {
"props.data": {
"binding": {
"config": {
"expression": "{view.params.plant}"
},
"transforms": [
{
"code": "\tif value is None or value.strip() \u003d\u003d \"\" :\n\t\treturn []\n\tvalue \u003d value.replace(\" Line\", \"\")\n\t_tagRes \u003d system.tag.browse(path\u003d\"[MQTT Engine]Edge Nodes/%s\"%(value),filter\u003d{\"recursive\":True,\"tagType\":\"AtomicTag\"}).results\n\t\n\tfinal \u003d []\n\tfor tag in _tagRes:\n\t\tfinal.append({\"TagPath\":\"/\".join(str(tag[\"fullPath\"]).split(\"/\")[2:]), \"FullPath\":tag[\"fullPath\"]})\n\t\n\treturn final",
"type": "script"
}
],
"type": "expr"
}
}
},
"props": {
"columns": [
{
"align": "center",
"boolean": "checkbox",
"dateFormat": "MM/DD/YYYY",
"editable": false,
"field": "TagPath",
"footer": {
"align": "center",
"justify": "left",
"style": {
"classes": ""
},
"title": ""
},
"header": {
"align": "center",
"justify": "left",
"style": {
"classes": ""
},
"title": ""
},
"justify": "auto",
"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": "FullPath",
"footer": {
"align": "center",
"justify": "left",
"style": {
"classes": ""
},
"title": ""
},
"header": {
"align": "center",
"justify": "left",
"style": {
"classes": ""
},
"title": ""
},
"justify": "auto",
"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": ""
}
],
"rows": {
"style": {
"fontSize": 12
}
}
},
"type": "ia.display.table"
},
{
"children": [
{
"events": {
"component": {
"onActionPerformed": {
"config": {
"script": "\tselPath \u003d self.parent.parent.getChild(\"Table\").props.selection.data[0].FullPath\n\tsystem.perspective.sendMessage(\"rcvPathSelection\",{\"fullPath\":selPath})\n\t\n\tsystem.perspective.closePopup(\"\")"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Button"
},
"position": {
"basis": "142px"
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"expression": "{.../Table.props.selection.selectedRow} !\u003d None"
},
"type": "expr"
}
}
},
"props": {
"text": "Select"
},
"type": "ia.input.button"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "51.3px"
},
"props": {
"justify": "center"
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "root"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
}
}