Dashboard 2: Show/hide group by group name not working?

Hello:

When using ui-control to show/hide groups, if I use the group name, it doesn't work and I see and error message in NR logs -

Sep 17:55:45 - [error] [ui-control:Show/hide Lux Events] Error: No group found with id or name 'Indoor Lux Events'
4 Sep 17:55:54 - [error] [ui-control:Show/hide Lux Events] Error: No group found with id or name 'Indoor Lux Events'

However, if I use the group ID (found it after exporting the flow and searching for ui-group), it works.

I had converted another flow using the Flowfuse migration service to DB2 and it does work there. I then exported the “migrated” flow and used this ( DB2: Duplicate/Copy ui-pages with all widgets? - #12 by rakgupta ) to “duplicate” the flow and everything but the show/hide is working. I even deleted the “converted” groups and created new ones but the show/hide does not work.

Any idea on what could be happening? Not sure if this is a bug or something in the “conversion” process that I used (if the latter, then I need to put a caveat out on that thread). Thanks for your help.

I have noticed this too. If you add ui-control node existing groups and widgets are recognised. But nodes/groups added after this will never be found

My solution was to delete the ui-control node, re-add it and deploy. Then everything seems to work ok

I would say this is a bug with ui-control

1 Like

I think that if you just restart node-red that will fix it. But yes, I would say that is a bug. Please report it on the dashboard issues page.

I had tried that (I think) - but it had not worked. Will try recreating it and then create an issue.

Make sure you refresh the dashboard browser window too.

Turns out that my group name had an extra space in it. I should have looked at that more closely since I was getting an error on only one of the two groups on show/hide. Sorry for wasting your time - it’s the obvious things that get missed :man_facepalming:t2: