Json for Initial Button:
-----------------------------
{
"custom": {},
"params": {
"description": "Device Description",
"name": "TK2106Recirc",
"path": "[default]Recirc/TK2106Recirc"
},
"propConfig": {
"params.description": {
"paramDirection": "input",
"persistent": true
},
"params.name": {
"binding": {
"config": {
"path": "view.params.path"
},
"transforms": [
{
"code": "\tplcTagAddress \u003d str(value)\n\tif \"/\" in plcTagAddress:\n\t\ttext \u003d plcTagAddress.split(\"/\")[-1]\n\t\ttext \u003d text.replace(\"_\", \"-\")\n\telse:\n\t\ttext \u003d \"Invalid tag path\"\n\treturn text",
"type": "script"
}
],
"type": "property"
},
"paramDirection": "inout",
"persistent": true
},
"params.path": {
"paramDirection": "inout",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 23,
"width": 56
}
},
"root": {
"children": [
{
"meta": {
"name": "Label_0"
},
"position": {
"height": 23,
"width": 56
},
"props": {
"style": {
"backgroundColor": "#C3C3C3",
"borderStyle": "outset"
},
"text": "RECIRC",
"textStyle": {
"alignSelf": "center",
"fontSize": 12,
"fontWeight": "bold"
}
},
"type": "ia.display.label"
},
{
"events": {
"dom": {
"onMouseDown": {
"config": {
"draggable": true,
"id": "{view.params.plcTagAddress}",
"modal": false,
"overlayDismiss": true,
"position": {
"relativeLocation": "center"
},
"positionType": "relative",
"resizable": true,
"showCloseIcon": true,
"type": "open",
"viewParams": {
"description": "{view.params.description}",
"name": "{view.params.name}",
"path": "{view.params.path}"
},
"viewPath": "Templates/Device Pop-ups/Recirc",
"viewportBound": false
},
"scope": "C",
"type": "popup"
}
}
},
"meta": {
"name": "Popup_PB"
},
"position": {
"height": 20,
"width": 54,
"x": 2,
"y": 2
},
"props": {
"style": {
"cursor": "pointer"
}
},
"type": "ia.display.icon"
}
],
"custom": {
"key": "value"
},
"meta": {
"name": "root"
},
"position": {
"x": 0,
"y": 1
},
"props": {
"style": {
"overflow": "hidden"
}
},
"type": "ia.container.coord"
}
}
Json for Popup:
---------------------
{
"custom": {},
"params": {
"description": "TK2106 Recirc",
"name": "TK2106",
"path": "[default]Recirc/TK2106Recirc"
},
"propConfig": {
"params.description": {
"paramDirection": "input",
"persistent": true
},
"params.faulted": {
"paramDirection": "input",
"persistent": true
},
"params.name": {
"paramDirection": "input"
},
"params.path": {
"paramDirection": "input",
"persistent": true
},
"params.path.name": {
"paramDirection": "input",
"persistent": true
},
"params.path.num": {
"paramDirection": "input",
"persistent": true
},
"params.path.tag": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 253,
"width": 308
}
},
"root": {
"children": [
{
"children": [
{
"meta": {
"name": "Label"
},
"position": {
"breakpoints": [
{
"colIndex": -1,
"name": "sm",
"order": 0,
"rowIndex": 0,
"span": 12
},
{
"colIndex": 0,
"name": "md",
"order": 1,
"rowIndex": 0,
"span": 12
},
{
"colIndex": 3,
"name": "lg",
"order": 1,
"rowIndex": 0,
"span": 1
}
],
"height": 36
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "{view.params.name}"
},
"type": "expr"
}
}
},
"props": {
"style": {
"backgroundColor": "#0c7bb3",
"color": "#FFFFFF",
"fontSize": 24,
"fontWeight": "bolder",
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"meta": {
"name": "Label_0"
},
"position": {
"breakpoints": [
{
"colIndex": -1,
"name": "sm",
"order": 0,
"rowIndex": 1,
"span": 12
},
{
"colIndex": 7,
"name": "md",
"order": 4,
"rowIndex": 1,
"span": 12
},
{
"colIndex": 7,
"name": "lg",
"order": 4,
"rowIndex": 1,
"span": 1
}
],
"height": 60
},
"propConfig": {
"props.text": {
"binding": {
"config": {
"expression": "{view.params.name} + \" Recirculation\""
},
"type": "expr"
}
}
},
"props": {
"style": {
"classes": "XXX_Background/Primary/Grey",
"color": "#FFFFFF",
"fontSize": "12pt",
"fontWeight": "bolder",
"textAlign": "center"
}
},
"type": "ia.display.label"
},
{
"events": {
"dom": {
"onClick": {
"config": {
"script": "\tsystem.tag.writeBlocking(self.view.params.path + \"/Startbutton\", 1)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Button"
},
"position": {
"breakpoints": [
{
"colIndex": 2,
"name": "sm",
"order": 0,
"rowIndex": 2,
"span": 8
},
{
"colIndex": 5,
"name": "md",
"order": 0,
"rowIndex": 3,
"span": 1
},
{
"colIndex": 5,
"name": "lg",
"order": 0,
"rowIndex": 3,
"span": 1
}
],
"height": 58
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "direct",
"tagPath": "[default]Recirc/TK2106Recirc/StartButtonAvailable"
},
"type": "tag"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if ({[default]Recirc/TK2106Recirc/Start},\u0027#00FF00\u0027, \"#CCCCCC\")"
},
"type": "expr"
}
}
},
"props": {
"image": {
"style": {
"borderStyle": "solid",
"color": "#000000"
}
},
"style": {
"borderColor": "#000000",
"borderStyle": "solid",
"borderWidth": 2
},
"text": "Start",
"textStyle": {
"color": "black"
}
},
"type": "ia.input.button"
},
{
"events": {
"dom": {
"onMouseDown": {
"config": {
"script": "\tsystem.tag.writeBlocking(self.view.params.path + \"/AbortButton\",1)"
},
"scope": "G",
"type": "script"
}
}
},
"meta": {
"name": "Button_0"
},
"position": {
"breakpoints": [
{
"colIndex": 2,
"name": "sm",
"order": 0,
"rowIndex": 3,
"span": 8
},
{
"colIndex": 5,
"name": "md",
"order": 0,
"rowIndex": 3,
"span": 1
},
{
"colIndex": 5,
"name": "lg",
"order": 0,
"rowIndex": 3,
"span": 1
}
],
"height": 58
},
"propConfig": {
"props.enabled": {
"binding": {
"config": {
"fallbackDelay": 2.5,
"mode": "direct",
"tagPath": "[default]Recirc/TK2106Recirc/AbortButtonAvailable"
},
"type": "tag"
}
},
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if ({[default]Recirc/TK2106Recirc/Abort},\u0027#00FF00\u0027, \"#CCCCCC\")"
},
"type": "expr"
}
},
"props.style.color": {
"binding": {
"config": {
"expression": "if ({[default]Recirc/TK2106Recirc/Abort},\u0027#00FF00\u0027, \"#CCCCCC\")"
},
"type": "expr"
}
}
},
"props": {
"style": {
"borderColor": "#000000",
"borderStyle": "solid",
"borderWidth": 2
},
"text": "Stop",
"textStyle": {
"color": "black"
}
},
"type": "ia.input.button"
}
],
"meta": {
"contextMenu": {
"style": {
"overflow": "hidden"
}
},
"name": "ColumnContainer",
"tooltip": {
"style": {
"overflow": "hidden"
}
}
},
"position": {
"basis": "316px"
},
"props": {
"breakpoints": [
{
"minWidth": 0,
"name": "sm"
},
{
"minWidth": 423,
"name": "md"
},
{
"minWidth": 996,
"name": "lg"
}
],
"style": {
"backgroundColor": "#c5c5c5",
"borderWidth": 4,
"overflow": "hidden"
}
},
"type": "ia.container.column"
}
],
"meta": {
"contextMenu": {
"style": {
"overflow": "hidden"
}
},
"name": "root"
},
"props": {
"style": {
"overflow": "visible"
}
},
"type": "ia.container.flex"
}
}