Problem with generic form

hi everyone, i am novice of node-red.
I have a problem that will surely be foolish for you.
I made a dashboard with a form; in the form where are two text fields.
Every one minute I read data from csv file and I put data in the form.

When I open dashboard the form is enpty and the data appear after a few seconds.
There is a way to show data immediately after opening the dashboard ?

thanks a lot to everyone for help me.


1 possible solution...

On this minute trigger, store the CSV data in flow context then use the ui_control node (it can fire a msg when someone connects) to send the values stored in flow context to your form.

Use the change node to store in flow.xxxx and to get values back out of flow.xxxx

Read the help info for the ui_control on what it sends / when it sends. You'll likely need a filter (a switch node) to filter the desired msg for recognising when a user connects to the dashboard.

1 Like

it works fine
Thanks so much Steve-Mcl for the solution

1 Like

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