flexdash / node-red-flexdash

Node-RED server integration for FlexDash
MIT License
10 stars 3 forks source link

fd_children does not get set in dashboard and tab node #8

Open maddin79 opened 1 year ago

maddin79 commented 1 year ago

Hello,

first of all, thanks for the work.

I try to get this running but I never get a function configuration. I try to setup the same flow as the "Hello World" example, but it does not matter what I do, the fd_children always stay on undefined. I even exported the "Hello World" and my one and compared it. In my version the fd_children are not set. The logs show always the following error:

2/02/2023, 21:30:58
msg : string[24]
"Error: no fd_children in"
02/02/2023, 21:30:58msg : string[71]
"Node '4b2e4c915eaae7c0' has non-string fd_children: undefined undefined"
02/02/2023, 21:30:58msg : string[24]
"Error: no fd_children in"
02/02/2023, 21:30:58msg : string[71]
"Node 'b36de40da23c0544' has non-string fd_children: undefined undefined"
02/02/2023, 21:31:10msg : string[24]
"Error: no fd_children in"
02/02/2023, 21:31:10msg : string[71]
"Node '4b2e4c915eaae7c0' has non-string fd_children: undefined undefined"
02/02/2023, 21:31:10msg : string[24]
"Error: no fd_children in"
02/02/2023, 21:31:10msg : string[71]
"Node 'b36de40da23c0544' has non-string fd_children: undefined undefined"

b36de40da23c0544 is the tab node and 4b2e4c915eaae7c0 the dashboard node. Fun thing is that in the tab node field "fd" references the dashboard id.

In the graphical configuration I have set the dashboard in the tab node. Also I have a grid node and in that i picked the tab node. Somehow the configuration in the back end does not get updated.

Any help is more than welcome.

Best Martin

awgrover commented 1 year ago

I'm seeing this too. The drop down for setting the grid/panel shows "--" only. I've been patching up the flow.json manually (yikes!). In the flow.json, the fd_children=[], parent fields are getting set for some cases.

Nodered v3.0.2 Node v16.19.0 @flexdash/node-red-fd-corewidgets@0.4.64 @flexdash/node-red-flexdash@0.4.143

tve commented 1 year ago

I did push a version 0.4.145 a day or two ago that fixes one issue that may be related. I'm having a hard time getting an idea how to try and reproduce the problem you're seeing. Do you have any steps that lead there?

maddin79 commented 1 year ago

Sorry for the late reply. Got distracted by another project.

At the moment I do not have a clue. As soon as I have some spare time, I'll check it again. Maybe I find something.

Best Martin

awgrover commented 1 year ago

The problem appears to be gone at:

Node-RED version: v3.0.2
Node.js  version: v16.19.0
FlexDash plugin version 0.4.154
Node-RED FlexDash version 0.4.154
Node-RED FD Core Widgets version 0.4.64
FlexDash UI version 0.4.90

I added a new grid to an existing tab, the "container" of a node allowed me to add and set that. The grid's "tab" drop-down had entries.