I have a dashboard form where I'm passing a payload to show default values. But It's not showing the default value without reloading.
Here are my nodes
[
{
"id": "50310e642afe06ea",
"type": "function",
"z": "0b22178d4da0c28a",
"name": "",
"func": "\nmsg.payload.dataUnit = 'm/s';\n\n\nflow.set('Druck',msg.payload);\n\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 920,
"y": 80,
"wires": [
[]
]
},
{
"id": "ea4c904f4b1b2fba",
"type": "inject",
"z": "0b22178d4da0c28a",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": "0",
"topic": "",
"payload": "",
"payloadType": "str",
"x": 170,
"y": 80,
"wires": [
[
"c1249a7a731ba4cd"
]
]
},
{
"id": "c1249a7a731ba4cd",
"type": "function",
"z": "0b22178d4da0c28a",
"name": "",
"func": "msg.payload = {\"value\":100,\"deviation\":20,\"stopage_value\":10,\"stopage_deviation\":50};\nflow.set(\"Druck\",msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 400,
"y": 80,
"wires": [
[
"f2d3af8b949d5f34"
]
]
},
{
"id": "f2d3af8b949d5f34",
"type": "ui_form",
"z": "0b22178d4da0c28a",
"name": "",
"label": "Druck",
"group": "0ae5292102558b55",
"order": 3,
"width": 6,
"height": 5,
"options": [
{
"label": "Production Value",
"value": "value",
"type": "number",
"required": true,
"rows": null
},
{
"label": "Production Deviation (in %)",
"value": "deviation",
"type": "number",
"required": true,
"rows": null
},
{
"label": "Stopage Value",
"value": "stopage_value",
"type": "number",
"required": true,
"rows": null
},
{
"label": "Stopage Deviation (in %)",
"value": "stopage_deviation",
"type": "number",
"required": true,
"rows": null
}
],
"formValue": {
"value": "",
"deviation": "",
"stopage_value": "",
"stopage_deviation": ""
},
"payload": "",
"submit": "submit",
"cancel": "cancel",
"topic": "topic",
"topicType": "msg",
"splitLayout": "",
"className": "",
"x": 690,
"y": 80,
"wires": [
[
"50310e642afe06ea"
]
]
},
{
"id": "0ae5292102558b55",
"type": "ui_group",
"name": "Default",
"tab": "6fc5eec4853e1711",
"order": 1,
"disp": false,
"width": "28",
"collapse": false,
"className": ""
},
{
"id": "6fc5eec4853e1711",
"type": "ui_tab",
"name": "Process Data ID11",
"icon": "dashboard",
"order": 6,
"disabled": false,
"hidden": false
}
]