# UI Chart from database

**URL:** <https://discourse.nodered.org/t/ui-chart-from-database/8774>\
**Category:** General\
**Created:** [9 March 2019 13:18 UTC](https://discourse.nodered.org/t/ui-chart-from-database/8774 "2019-03-09T13:18:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sirhc](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Post date:** [9 March 2019 13:18 UTC](https://discourse.nodered.org/t/ui-chart-from-database/8774/1 "2019-03-09T13:18:32Z")

</div>

Hello

I am trying to trigger a request to my IBM Cloudant database to return all data when opening the UI Dashboard. The flow I have is below, but I do not see anything in the debug node when I open the UI dashboard.

If I test with an inject node I can see all the database data in the debug window. How can I make this work with the http nodes?

```auto
[{"id":"5606d058.7b3a9","type":"cloudant in","z":"ab8b7973.789328","name":"","cloudant":"e27cf106.aaa43","database":"XYZ","service":"XYZDB","search":"_all_","design":"","index":"","x":560,"y":660,"wires":[["de3d8726.b0f978","4620fa05.6d4d84"]]},{"id":"de3d8726.b0f978","type":"debug","z":"ab8b7973.789328","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":730,"y":760,"wires":[]},{"id":"2e54440d.081b2c","type":"http in","z":"ab8b7973.789328","name":"","url":"ui","method":"get","upload":false,"swaggerDoc":"","x":370,"y":580,"wires":[["5606d058.7b3a9"]]},{"id":"4620fa05.6d4d84","type":"http response","z":"ab8b7973.789328","name":"","statusCode":"","headers":{},"x":720,"y":640,"wires":[]},{"id":"e27cf106.aaa43","type":"cloudant","z":null,"host":"","name":""}]

```

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 March 2019 16:32 UTC](https://discourse.nodered.org/t/ui-chart-from-database/8774/2 "2019-03-09T16:32:57Z")

</div>

Use the `ui_control` in node- that outputs several events - one of which is a connection event you can use to trigger your cloudant request.

---

<div class="post-metadata">

**Author:** ![Sirhc](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Post date:** [10 March 2019 11:38 UTC](https://discourse.nodered.org/t/ui-chart-from-database/8774/3 "2019-03-10T11:38:43Z")

</div>

Thanks!!!
