# Executing flows on UT tab events, tab selection?

**URL:** <https://discourse.nodered.org/t/executing-flows-on-ut-tab-events-tab-selection/30641>\
**Category:** General\
**Created:** [24 July 2020 04:54 UTC](https://discourse.nodered.org/t/executing-flows-on-ut-tab-events-tab-selection/30641 "2020-07-24T04:54:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [24 July 2020 04:54 UTC](https://discourse.nodered.org/t/executing-flows-on-ut-tab-events-tab-selection/30641/1 "2020-07-24T04:54:54Z")

</div>

Is there a way to trigger a flow when operator changes from one dashboard tab to another? Or when a specific tab is selected?

I want to run a flow to update the status, presentation of UI objects, when a given tab is selected.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [24 July 2020 05:13 UTC](https://discourse.nodered.org/t/executing-flows-on-ut-tab-events-tab-selection/30641/2 "2020-07-24T05:13:21Z")

</div>

You can use the `ui control` node for this purpose. It emits change events:

> - **UI-Control** - allows some dynamic control of the dashboard. Sending a `msg.payload` of the tab number (from 0) or tab\_name will switch to that tab. Tabs can be enabled/disabled/hide/show via msg like `{"tabs":{"hide":["tab_name_with_underscores"],"show":["another_tab_name"],"disable":["unused_tab_name"]}}` . Groups can be hidden and made visible via a msg like `{"group":{"hide":["tab_name_group_name_with_underscores"],"show":["tab_name_another_group"],"focus":true}}` . **Outputs a `msg.payload` for every browser _connect_ and _loss_ , and every tab _change_ . This can be used to trigger other actions like resetting the visibility of tabs and groups.**

---

<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:** [22 September 2020 05:13 UTC](https://discourse.nodered.org/t/executing-flows-on-ut-tab-events-tab-selection/30641/3 "2020-09-22T05:13:26Z")

</div>

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