(for some reason your two posts to the group last night were flagged as spam and were waiting moderation..)
Hi, I am using data inbound from MySQL node, with a query selecting the appropriate data, into a UI Template, and then presenting the array with the AngularJS ng repeat construct, as follows:--<div class="container col-md-12" ><table class="table" style="width:100%" border="1"><style>th, td {text-align: middle};</style><h3>Table Client</h3><tr><th>idclient</th><th>clientname</th><th>webpage</th></tr><tbody><tr ng-repeat="x in msg.payload | limitTo:10 "><td>{{x.idclient}}</td><td>{{x.clientname}}</td><td>{{x.webpage}}</td></tbody></table></div>I now need to be able to INSERT a row into the same table from here, or even UPDATE by selecting a row, where it then need to open another UI-TEMPLATE, where the row can be inserted / updated. I find a lot on the web expaining how one does this in Angular JS, like this http://jsfiddle.net/martlark/upftnrdz/ link. (although I do not want buttons)But, I do not understand how to shape this for NodeRed, using a UI-Template.Then I assume one could package JSON object with the inserted row, or updated fields, pump this into a function that builds the INSERT of UPDATE statement, and back into a MySQL node. Is this the way to do it? How would the Angular code look like in UI-Template ?Anybody with some ideas? Jéan.
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/17945350-b7cb-4bc5-b5f0-2406fc61ae66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/K1PbVkBWXPg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/ce7a80e2-a6e9-4ce0-b2d6-d9ce544ca19c%40googlegroups.com.