Ui_control doesn't react on tab change

Hi there,

sorry if this question sounds a little bit silly, but I'm quite new in dashboard design.
My first project is to serve status display for my homematic home automation to android tablet. At the moment there are two tabs.

  1. Status gauges and alarm "LEDs" for several states in my house.
  2. A wish- / shopping list for my wife.

  1. Is working great
  2. works sometimes, sometimes not.

For my shopping list I'm using a form -> multi line text box. By clicking OK the inserted text will be saved in flow.variable (file). So far all fine. But when I switch to Tab1 and back to Tab2 my saved text has been gone, although the flow.variable persists.
I use ui_control.Output connected to function.node which sets payload to flow.get("myvariable") which will be connected to my form.

What I'm doing wrong, I've tested all modes from ui_control. If I completely refresh my browser by F5 it works. But if I only switch between tabs ui_control will not fire - sometimes. (I've tested it with debug node).

I'm using Node-Red v. 1.2.6 on Raspy 3B

Here is my Flow-Part of shopping list ->

[{"id":"ad0377b0.b47188","type":"function","z":"548970e7.88d15","name":"call","func":"msg.payload = flow.get(\"dashboard_notes\");\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":510,"y":920,"wires":[["ef5c0228.9955","a6b0683f.58cf68"]]},{"id":"a2df533a.a967f","type":"function","z":"548970e7.88d15","name":"store","func":"flow.set(\"dashboard_notes\",msg.payload);\nmsg.payload = \"Eingabe wurde gespeichert\"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":810,"y":920,"wires":[["afebfec6.b175a"]]},{"id":"a6b0683f.58cf68","type":"ui_form","z":"548970e7.88d15","name":"Einkaufliste","label":"","group":"45350704.6f1db8","order":1,"width":"6","height":"4","options":[{"label":"","value":"Notes","type":"multiline","required":false,"rows":5}],"formValue":{"Notes":""},"payload":"","submit":"OK","cancel":"Löschen","topic":"","x":670,"y":920,"wires":[["a2df533a.a967f"]]},{"id":"ef5c0228.9955","type":"debug","z":"548970e7.88d15","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":710,"y":1103,"wires":[]},{"id":"8e81d9cb.138918","type":"ui_ui_control","z":"548970e7.88d15","name":"","events":"all","x":360,"y":920,"wires":[["ad0377b0.b47188"]]},{"id":"afebfec6.b175a","type":"ui_toast","z":"548970e7.88d15","position":"top right","displayTime":"3","highlight":"","sendall":false,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"INFO","name":"","x":990,"y":920,"wires":[]},{"id":"45350704.6f1db8","type":"ui_group","name":"Einkaufliste","tab":"e1a25372.b66b","order":5,"disp":true,"width":"6","collapse":false},{"id":"e1a25372.b66b","type":"ui_tab","name":"Notizen","icon":"fa-sticky-note","order":6,"disabled":false,"hidden":false}]

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