SAT9/.resources/f3357decc249c75133c28d584bd4961eb138021df42a36a52c90ef2323834236

237 lines
7.8 KiB
Plaintext

{
"custom": {},
"params": {},
"props": {
"defaultSize": {
"height": 1080,
"width": 400
}
},
"root": {
"children": [
{
"children": [
{
"children": [
{
"custom": {
"selected_tag": "[BRS1_SCADA_TAG_PROVIDER]System/device_count"
},
"events": {
"component": {
"onNodeClick": {
"config": {
"script": "\tpath \u003d event.path\n\tinfo \u003d system.tag.getConfiguration(path)\n\ttag_type \u003d str(info[0].get(\"tagType\"))\n\tif tag_type \u003d\u003d \"AtomicTag\":\n\t\tself.custom.selected_tag \u003d path\n\telse:\n\t\tself.custom.selected_tag \u003d None"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "TagBrowseTree"
},
"position": {
"basis": "669px"
},
"propConfig": {
"custom.tag_value": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"selected_tag": "{this.custom.selected_tag}"
},
"tagPath": "{selected_tag}"
},
"transforms": [
{
"code": "\timport org.python.core.PyUnicode as uni\n\tif value \u003d\u003d None:\n\t\treturn \"N/A\"\n\t\t\n\tif isinstance(value, uni) and len(value) \u003e 50:\n\t\treturn (value[:50])\n\treturn value",
"type": "script"
}
],
"type": "tag"
},
"onChange": {
"enabled": null,
"script": "\tpayload \u003d {}\n\ttag_value \u003d self.custom.tag_value\n\tpayload[\"data\"] \u003d tag_value \n\tsystem.perspective.sendMessage(\"update-tag-value\", payload, scope \u003d \"view\")"
}
},
"props.root.path": {
"binding": {
"config": {
"expression": "concat(\"[\",{session.custom.fc},\"_SCADA_TAG_PROVIDER]\")"
},
"type": "expr"
}
}
},
"props": {
"root": {},
"selection": {
"mode": "single",
"values": [
"[BRS1_SCADA_TAG_PROVIDER]System/device_count"
]
}
},
"type": "ia.display.tag-browse-tree"
},
{
"children": [
{
"meta": {
"name": "Icon"
},
"position": {
"basis": "32px"
},
"props": {
"path": "material/local_offer",
"style": {
"marginLeft": "10px"
}
},
"type": "ia.display.icon"
},
{
"meta": {
"name": "Label"
},
"position": {
"basis": "80px"
},
"props": {
"style": {
"textIndent": "10px"
},
"text": "Tag Value",
"textStyle": {
"fontSize": "12px",
"fontWeight": "bold"
}
},
"type": "ia.display.label"
}
],
"meta": {
"name": "FlexContainer_0"
},
"position": {
"basis": "40px"
},
"props": {
"style": {
"borderBottomLeftRadius": "5px",
"borderBottomRightRadius": "5px",
"borderStyle": "none",
"borderTopLeftRadius": "5px",
"borderTopRightRadius": "5px",
"marginLeft": "10px",
"marginRight": "10px",
"marginTop": "10px"
}
},
"type": "ia.container.flex"
},
{
"children": [
{
"meta": {
"name": "Markdown"
},
"position": {
"basis": "301px"
},
"props": {
"source": "{}",
"style": {
"fontFamily": "Arial",
"textIndent": "10px"
}
},
"scripts": {
"customMethods": [],
"extensionFunctions": null,
"messageHandlers": [
{
"messageType": "update-tag-value",
"pageScope": false,
"script": "\tdata \u003d payload[\"data\"]\n\tself.props.source \u003d data",
"sessionScope": false,
"viewScope": true
}
]
},
"type": "ia.display.markdown"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "112px"
},
"props": {
"style": {
"borderBottomLeftRadius": "5px",
"borderBottomRightRadius": "5px",
"borderStyle": "solid",
"borderTopLeftRadius": "5px",
"borderTopRightRadius": "5px",
"margin": "10px",
"marginLeft": "10px",
"marginRight": "10px",
"marginTop": "10px",
"paddingBottom": "10px",
"paddingLeft": "10px",
"paddingRight": "10px",
"paddingTop": "10px"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "1025px"
},
"props": {
"direction": "column",
"style": {
"borderBottomLeftRadius": "5px",
"borderBottomRightRadius": "5px",
"borderStyle": "solid",
"borderTopLeftRadius": "5px",
"borderTopRightRadius": "5px",
"margin": "10px"
}
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "FlexContainer"
},
"position": {
"basis": "361px",
"grow": 1
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
}
],
"meta": {
"name": "root"
},
"props": {
"direction": "column"
},
"type": "ia.container.flex"
}
}