# Duplicate code which includes Dashboard nodes?

**URL:** <https://discourse.nodered.org/t/duplicate-code-which-includes-dashboard-nodes/44591>\
**Category:** Dashboard\
**Created:** [23 April 2021 09:27 UTC](https://discourse.nodered.org/t/duplicate-code-which-includes-dashboard-nodes/44591 "2021-04-23T09:27:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeromeVISUALS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeromevisuals/32/40103_2.png) [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)\
**Post date:** [23 April 2021 09:27 UTC](https://discourse.nodered.org/t/duplicate-code-which-includes-dashboard-nodes/44591/1 "2021-04-23T09:27:00Z")

</div>

Hi There,

I'm building custom UI and workflows for video broadcast system. I have a nicely working set-up where I can choose which channel I want to control, which then makes the right HTTP requests to get status and send commands. So far so good, with use of DB UI nodes and flow variables.  
What I'd like to do now is being able to display several "channels" at the same time for a wider overview of the system. I was considering using sub-flows to duplicate code easily, but as far as I could see that does not work well with DB....  
As you can see on the screen below, the UI nodes are really into the code, as we need to get AND set values .....

How you guys would you deal with such a case ? Any suggestion ?  
Many thanks for oyur help !!

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/9/69123c7e230d8f59ab8264b50dd37614fbf5768d.png)

 ![image_2021_04_22T21_50_37_442Z](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/9/0957cde26c2e6896b03d203d6e5101cab72fb755.png)

---

<div class="post-metadata">

**Author:** ![JeromeVISUALS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeromevisuals/32/40103_2.png) [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)\
**Post date:** [24 April 2021 09:31 UTC](https://discourse.nodered.org/t/duplicate-code-which-includes-dashboard-nodes/44591/2 "2021-04-24T09:31:18Z")

</div>

No idea there ?

---

<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:** [24 May 2021 09:32 UTC](https://discourse.nodered.org/t/duplicate-code-which-includes-dashboard-nodes/44591/3 "2021-05-24T09:32:08Z")

</div>

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