# UI Tab name from environment variables

**URL:** <https://discourse.nodered.org/t/ui-tab-name-from-environment-variables/44108>\
**Category:** Dashboard\
**Created:** [13 April 2021 13:48 UTC](https://discourse.nodered.org/t/ui-tab-name-from-environment-variables/44108 "2021-04-13T13:48:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nodebot](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@nodebot](https://discourse.nodered.org/u/nodebot)\
**Post date:** [13 April 2021 13:48 UTC](https://discourse.nodered.org/t/ui-tab-name-from-environment-variables/44108/1 "2021-04-13T13:48:00Z")

</div>

Hi all,

First of all, thank you very much for the forum, it's really helpful!

My problem :

I created 3 sub-flows, each sub-flow is related to a type of device (eg: temperature sensor, pressure sensor), in these sub-flows I do data processing and dashboard display (ui\_text, ui\_chart)

I have multiple instances of these 3 sub-flows. (eg: 3 temperature sensors, 2 pressure sensors)

Each sensor has an ID (eg: Temp1, Temp2, Temp3, Pres1, Pres2)

Basically I want to display a list of devices.  
So, whenever i have a new instance i want a new tab (named sensor id) with the ui element (graphic and text) under the same group (named device list).

So I tried setting the ui tab name from the environment variables set in the sub-flow settings.  
[List of devices] $ {SENSOR\_ID}

This works fine for one sub-flow (I have 3 Tab under "list of devices" group, Temp1, Temp2, Temp3)  
but if I try to do the same in a second sub-flow, the environment variable is not "recognized" and all instances of that sub-flows are grouped into one tab named "$ {SENSOR\_ID}"

do you know what i'm missing or is it even possible to do what i want this way?

Thank you for your time !

---

<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:** [13 May 2021 13:48 UTC](https://discourse.nodered.org/t/ui-tab-name-from-environment-variables/44108/2 "2021-05-13T13:48:26Z")

</div>

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