# Ui\_template not intialising on dashboard load

**URL:** <https://discourse.nodered.org/t/ui-template-not-intialising-on-dashboard-load/27171>\
**Category:** Dashboard\
**Created:** [24 May 2020 04:48 UTC](https://discourse.nodered.org/t/ui-template-not-intialising-on-dashboard-load/27171 "2020-05-24T04:48:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwmingis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rwmingis/32/19479_2.png) [@rwmingis](https://discourse.nodered.org/u/rwmingis)\
**Post date:** [24 May 2020 04:48 UTC](https://discourse.nodered.org/t/ui-template-not-intialising-on-dashboard-load/27171/1 "2020-05-24T04:48:26Z")

</div>

Hi Everyone,

Got some great help from user hotNipi on how to make a custom chart using ui\_template, very powerful, particularly when you figure out how to do that scope.$watch function so it only updates the data of the chart only, not the whole thing for each message.

One thing I haven't been able to tackle yet. The ui\_template doesn't show until a message runs through the flow. Is there an onload listener that can start the flow once the dashboard finishes loading?

Thanks

Rob

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [24 May 2020 06:47 UTC](https://discourse.nodered.org/t/ui-template-not-intialising-on-dashboard-load/27171/2 "2020-05-24T06:47:56Z")

</div>

There is ui\_control node. Use it as dashboard events listener to trigger your related flow..

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0a0b15a55b5acdc8dcde9f0188900e6d069c554e.png)

---

<div class="post-metadata">

**Author:** ![rwmingis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rwmingis/32/19479_2.png) [@rwmingis](https://discourse.nodered.org/u/rwmingis)\
**Post date:** [24 May 2020 07:36 UTC](https://discourse.nodered.org/t/ui-template-not-intialising-on-dashboard-load/27171/3 "2020-05-24T07:36:27Z")

</div>

Done hotNipi, I had seen that node, tried it, but it didn't compute in my head; didn't think it would be that easy.

Thanks!

Rob

---

<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:** [7 June 2020 07:36 UTC](https://discourse.nodered.org/t/ui-template-not-intialising-on-dashboard-load/27171/4 "2020-06-07T07:36:28Z")

</div>

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