# Flow list page and flow template?

**URL:** <https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219>\
**Category:** General\
**Created:** [28 October 2019 08:27 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219 "2019-10-28T08:27:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![willxiang](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@willxiang](https://discourse.nodered.org/u/willxiang)\
**Post date:** [28 October 2019 08:27 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219/1 "2019-10-28T08:27:06Z")

</div>

Hello everyone, I am here to ask for some help.  
This is my flow code, i named the flow "greeting flow":

```auto
[{"id":"fcc45e0f.e7bde","type":"http in","z":"6308600e.e18bd","name":"","url":"/hello","method":"get","upload":false,"swaggerDoc":"","x":280,"y":240,"wires":[["7d0297e1.fc7a18"]]},{"id":"7d0297e1.fc7a18","type":"template","z":"6308600e.e18bd","name":"page","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<html>\n <head></head>\n <body>\n <h1>Hello Tommy!</h1>\n </body>\n</html>","x":430,"y":240,"wires":[["9bbee035.55136"]]},{"id":"9bbee035.55136","type":"http response","z":"6308600e.e18bd","name":"","statusCode":"","headers":{},"x":570,"y":240,"wires":[]}];

```

The result of "greeting flow":  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/defedc7e7bffa48aae0aa486df997dd80379cef7.png)

It's all good.

Here is what i need:

1, I would like have a web ui page, a list of all my flow,then i can easy to manage the flows.

 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/1fc5cb4e9d3530f366fc855adf93f65fdbd0794b.jpeg)

2, I hope every flow (show in the list page) can edit the variable in the flow list (no need open dialog editor to edit the value one by one if i have a bunch of "greeting flow" )

when i click the "edit variable" button it would popup a dialog for editing variable values.  
 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/1e0e131d1d349f1b2b833986060325f34f70571f.jpeg)

If i could set "Tommy" like a variable,just like this in node editor:  
 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/aa88a5aa20b3e9279432c3d0e6a243b7efca6d11.jpeg)

( **sorry for the jpg link , i can't upload more image because i'm a new user** 🙂 )

When i change the user\_name to "Johnson" and redeploy the flow , it would show "Hello Johnson !".

Actually i think my question is like a "template feature" ,when i create a flow template, i set some variable for the template,the template like a parent flow, and then i deployed a bunch of child flow from parent flow but those child flow's variable are diffrent , and i can run it using by flow list page("run flow " button...).

Appreciate any help,  
BR,  
Will

---

<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:** [28 October 2019 08:50 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219/2 "2019-10-28T08:50:29Z")

</div>

"run flow" - flows are always running and do stuff based on their input ?

Depending on what you want to "run", there are many possibilities.  
You can create the table/forms with the dashboard nodes, click button and the message arrives in node-red and perform some action based on that message.

---

<div class="post-metadata">

**Author:** ![willxiang](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@willxiang](https://discourse.nodered.org/u/willxiang)\
**Post date:** [28 October 2019 08:53 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219/3 "2019-10-28T08:53:07Z")

</div>

@bakman2

maybe change "run flow" - \>"redeploy" 🤣

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [29 October 2019 12:00 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219/4 "2019-10-29T12:00:57Z")

</div>

when you say "deploy"/"redeploy", does that mean you would like the flow to run with a different input?

---

<div class="post-metadata">

**Author:** ![willxiang](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@willxiang](https://discourse.nodered.org/u/willxiang)\
**Post date:** [29 October 2019 12:19 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219/5 "2019-10-29T12:19:07Z")

</div>

@afelix  
Yes ! that's what i want !  
please let me explain:  
assume there are **Flow A** and duplicate three flow(Flow A1,Flow A2,Flow A3...) from **Flow A** ,  
next i will configure input or parameter one by one for flow A1,A2,A3,  
finally , redeploy all flows...

---

<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:** [29 October 2019 12:24 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219/6 "2019-10-29T12:24:00Z")

</div>

You don't need to "redeploy" all flows. Just use [context/flow variables](https://nodered.org/docs/user-guide/context#what-is-context).

ie. on your dashboard, input set to "x", change the context variable to "x" and in your flows you do something based on the value of "x"

---

<div class="post-metadata">

**Author:** ![willxiang](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@willxiang](https://discourse.nodered.org/u/willxiang)\
**Post date:** [29 October 2019 12:29 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219/7 "2019-10-29T12:29:18Z")

</div>

Is there some way to modify context variable by http request?  
I have no idea after read the API document -\> [https://nodered.org/docs/api/](https://nodered.org/docs/api/) 🤣

---

<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:** [29 October 2019 12:34 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219/8 "2019-10-29T12:34:56Z")

</div>

API can be used for redeploy, but that won't help you with context.  
Read the documentation I linked to. And look further in the cookbook/guide how to work with the http-in/http-out nodes.

---

<div class="post-metadata">

**Author:** ![willxiang](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@willxiang](https://discourse.nodered.org/u/willxiang)\
**Post date:** [29 October 2019 12:38 UTC](https://discourse.nodered.org/t/flow-list-page-and-flow-template/17219/9 "2019-10-29T12:38:33Z")

</div>

Thanks ! 😊
