Returned payload to Dashboard Form not showing without reload

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
    }
]

druck

After the form is submitted feed the msg back to reload the form, you can use the new or reload the default values.
e.g

[{"id":"ea4c904f4b1b2fba","type":"inject","z":"da8a6ef0b3c9a5c8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":"0","topic":"","payload":"{\"value\":100,\"deviation\":20,\"stopage_value\":10,\"stopage_deviation\":50}","payloadType":"json","x":150,"y":4740,"wires":[["e13c0687d1a3c295"]]},{"id":"e13c0687d1a3c295","type":"change","z":"da8a6ef0b3c9a5c8","name":"","rules":[{"t":"set","p":"Druck","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":4740,"wires":[["f2d3af8b949d5f34"]]},{"id":"c0fc9ea3dec5da92","type":"change","z":"da8a6ef0b3c9a5c8","name":"","rules":[{"t":"set","p":"payload.dataUnit","pt":"msg","to":"m/s","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":4740,"wires":[["e13c0687d1a3c295","a81b088bee7c3ea9"]]},{"id":"f2d3af8b949d5f34","type":"ui_form","z":"da8a6ef0b3c9a5c8","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":450,"y":4740,"wires":[["c0fc9ea3dec5da92"]]},{"id":"a81b088bee7c3ea9","type":"debug","z":"da8a6ef0b3c9a5c8","name":"debug 234","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":350,"y":4680,"wires":[]},{"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}]

or

Use ui-control node to detect a page reload or connect and submit the default values to the form.

This is not what I wanted. I want to see the values in the form fields that I'm returning from the first function node. When I go to that tab where the form is available seems empty. But if I reload that tab, I can see those values in the form fields.

Then just add them in the first change node

[{"id":"ea4c904f4b1b2fba","type":"inject","z":"da8a6ef0b3c9a5c8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":"0","topic":"","payload":"{}","payloadType":"json","x":150,"y":4740,"wires":[["e13c0687d1a3c295"]]},{"id":"e13c0687d1a3c295","type":"change","z":"da8a6ef0b3c9a5c8","name":"","rules":[{"t":"set","p":"Druck","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"{\"value\":100,\"deviation\":20,\"stopage_value\":10,\"stopage_deviation\":50}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":4740,"wires":[["f2d3af8b949d5f34"]]},{"id":"c0fc9ea3dec5da92","type":"change","z":"da8a6ef0b3c9a5c8","name":"","rules":[{"t":"set","p":"payload.dataUnit","pt":"msg","to":"m/s","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":4740,"wires":[["e13c0687d1a3c295","a81b088bee7c3ea9"]]},{"id":"f2d3af8b949d5f34","type":"ui_form","z":"da8a6ef0b3c9a5c8","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":450,"y":4740,"wires":[["c0fc9ea3dec5da92"]]},{"id":"a81b088bee7c3ea9","type":"debug","z":"da8a6ef0b3c9a5c8","name":"debug 234","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":350,"y":4680,"wires":[]},{"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}]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.