UI Chart from database

#1

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?

[{"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":""}]
0 Likes

#2

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.

0 Likes

#3

Thanks!!!

0 Likes