# UI\_Control node question

**URL:** <https://discourse.nodered.org/t/ui-control-node-question/28671>\
**Category:** General\
**Created:** [21 June 2020 04:41 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671 "2020-06-21T04:41:49Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [21 June 2020 04:41 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/1 "2020-06-21T04:41:49Z")

</div>

I have a list of buttons on my dashboard, and after selecting one, I want to reset my page back to the top. It looks like UI\_Control Node is what I want, but no matter what I put into the mag.payload, nothing happens

My current tab is the 29th (from zero), named "Game".

My msg.payload has no effect. I've tried:

```auto
{tab:"(Game)"}
0
Game

```

I even tried going to a different tab, #6 named "Weather". No effect.  
So, what am I missing?

![ui_control](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/2/4249c21314ca794574233ddd279b40f477efc0b7.jpeg)

```auto
[{"id":"d0c000b.a8dc3","type":"ui_ui_control","z":"93a8305d.e7f44","name":"","x":440,"y":2000,"wires":[[]]},{"id":"4b600c6.e012cf4","type":"ui_button","z":"93a8305d.e7f44","name":"Top","group":"7b2258fe.be6e88","order":0,"width":0,"height":0,"passthru":false,"label":"Top","color":"","bgcolor":"","icon":"","payload":"Game","payloadType":"str","topic":"","x":290,"y":2000,"wires":[["d0c000b.a8dc3"]]},{"id":"8d070812.9824a8","type":"ui_ui_control","z":"93a8305d.e7f44","name":"","x":440,"y":2040,"wires":[[]]},{"id":"4ceca9af.e953a8","type":"ui_button","z":"93a8305d.e7f44","name":"Weather","group":"7b2258fe.be6e88","order":0,"width":0,"height":0,"passthru":false,"label":"Weather","color":"","bgcolor":"","icon":"","payload":"Weather","payloadType":"str","topic":"","x":300,"y":2040,"wires":[["8d070812.9824a8"]]},{"id":"7b2258fe.be6e88","type":"ui_group","z":"","name":"Hints","tab":"7ff14e1a.f74df","order":3,"disp":true,"width":"5"},{"id":"7ff14e1a.f74df","type":"ui_tab","z":"","name":"Game","icon":"dashboard","order":1}]

```

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [21 June 2020 05:02 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/2 "2020-06-21T05:02:31Z")

</div>

Isn't the ui\_control node supposed to control jumps to different pages in the dashboard??? You are mentioning tabs like in the editor. Are you trying to jump between tabs in the editor?

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [21 June 2020 05:08 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/3 "2020-06-21T05:08:26Z")

</div>

When the node information says "Tab Name" or number from zero, I have to assume it means the editor tab.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [21 June 2020 05:08 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/4 "2020-06-21T05:08:38Z")

</div>

From the node help: The format should be like  
{"tab":"my\_tab\_name"}

You could try {"tab":"Game"}

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [21 June 2020 05:10 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/5 "2020-06-21T05:10:29Z")

</div>

> [@SteveMann](#):
>
> When the node information says "Tab Name" or number from zero, I have to assume it means the editor tab.

Well,,,the ui\_control node is part of the dashboard nodes

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [21 June 2020 05:14 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/6 "2020-06-21T05:14:42Z")

</div>

"Well,,,the ui\_control node is part of the dashboard nodes"

Even if tru, I still can't go anywhere. Nothing makes any difference.  
I was hopeful that I misread the node info and I did try

```auto
 {"tab":"Game"}
 {"tab":"Weather"}

```

Those are also the tab names in the Dashboard page of the editor.

And neither did anything.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [21 June 2020 05:20 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/7 "2020-06-21T05:20:23Z")

</div>

Then I do not know what could be the problem. I have used the ui control node since long and it has always been working. I just use a single string with the name of the group the "tab" has

I assume you use the Group name in the calls?

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [21 June 2020 05:22 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/8 "2020-06-21T05:22:19Z")

</div>

EDIT:  
In this example, I send the string "Video" to my ui control node, this will bring the page/tab "Video" in front

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/5/753b2961355b4e33eab76214735676326d5245ce.png)

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [21 June 2020 14:19 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/9 "2020-06-21T14:19:37Z")

</div>

Thank you- I sort of have it working. I can go-to any page now. My mistake was sending {"tab":"Game"} as a string, not as a JSON object. Mystery solved.

But not my initial problem where I want to go to the top of the current page.

I have a workaround that seems to work. I first go to another page, then back to my current page:

 ![top](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/c/2c590a7dbcc21176806c4b593a72542c9a9f96f3.jpeg)

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [21 June 2020 14:33 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/10 "2020-06-21T14:33:27Z")

</div>

> [@SteveMann](#):
>
> I have a workaround that seems to work

Clever! I guess it has to be re-triggered like that to be fully "refreshed", i.e. "got to top" so to say

---

<div class="post-metadata">

**Author:** ![SteveMann](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stevemann/32/3810_2.png) [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Post date:** [22 June 2020 02:20 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/11 "2020-06-22T02:20:00Z")

</div>

The best laid plans...  
I have a new problem. I can't leave the page. I click on the hamburger menu to go to another page in my dashboard, and I am instantly brought back to my Game page.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 August 2020 02:20 UTC](https://discourse.nodered.org/t/ui-control-node-question/28671/12 "2020-08-21T02:20:17Z")

</div>

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