Dashboard - 'text input' setting delay to 0 - enter key only works when in that input field

756 views
Skip to first unread message

Zenofmud

unread,
Mar 8, 2017, 11:07:45 AM3/8/17
to node...@googlegroups.com
Node-RED version: v0.14.6
Node.js  version: v4.2.3
NPM      version: 3.10.10

node-red-...@2.3.5

1) I have two Text Input nodes (A and B) and set both to have Delay = 0
I enter a value in A and tab to B and enter a value and press enter, only B is processed.

Is this a bug or the way it should work?

2) can a button node be added as an input to a ‘text input’ node and cause the input nodes value to be sent?

Usage Case: I just want to set up a simple data entry on the dashboard. A couple text input fields and a button to send it all. Further nodes will put it all together, but in my testing I can’t figure out how to get it to work or IF is is possible. 

[{"id":"dc4e747d.26fc3","type":"debug","z":"fb39137e.04c6f","name":"","active":true,"console":"false","complete":"true","x":431,"y":743,"wires":[]},{"id":"830a089c.595b7","type":"ui_text_input","z":"fb39137e.04c6f","name":"","label":"B","group":"5cc59946.ca757","order":2,"width":"2","height":"1","passthru":false,"mode":"text","delay":"0","topic":"","x":274,"y":775,"wires":[["dc4e747d.26fc3"]]},{"id":"5d33b96e.7c0e28","type":"ui_text_input","z":"fb39137e.04c6f","name":"","label":"A","group":"5cc59946.ca757","order":1,"width":"2","height":"1","passthru":false,"mode":"text","delay":"0","topic":"","x":274,"y":708,"wires":[["dc4e747d.26fc3"]]},{"id":"d61ee5bc.ad0d4","type":"ui_button","z":"fb39137e.04c6f","name":"","group":"5cc59946.ca757","order":3,"width":0,"height":0,"label":"Enter","color":"#ff0000","bgcolor":"","icon":"fa-thumbs-up","payload":"Enter Pressed","payloadType":"str","topic":"","x":88,"y":746,"wires":[["5d33b96e.7c0e28","830a089c.595b7"]]},{"id":"5cc59946.ca757","type":"ui_group","z":"","name":"Text Input Test","tab":"e18f2ad3.00f5","disp":true,"width":"6"},{"id":"e18f2ad3.00f5","type":"ui_tab","z":"","name":"Test","icon":"dashboard"}]

Dave C-J

unread,
Mar 8, 2017, 1:35:03 PM3/8/17
to node...@googlegroups.com
Hi,
1. Will look and check
2, use a ui-form node ?

Zenofmud

unread,
Mar 9, 2017, 6:27:11 AM3/9/17
to node...@googlegroups.com
Solution (from a tidbit in another thread) - Use the ‘Form’ node instead! You can enter multiple fields in a form node and they all get sent at once - brilliant!

On Mar 8, 2017, at 11:07 AM, Zenofmud <zeno...@zenofmud.org> wrote:

Node-RED version: v0.14.6
Node.js  version: v4.2.3
NPM      version: 3.10.10

node-red-...@2.3.5

1) I have two Text Input nodes (A and B) and set both to have Delay = 0
I enter a value in A and tab to B and enter a value and press enter, only B is processed.

Is this a bug or the way it should work?

2) can a button node be added as an input to a ‘text input’ node and cause the input nodes value to be sent?

Usage Case: I just want to set up a simple data entry on the dashboard. A couple text input fields and a button to send it all. Further nodes will put it all together, but in my testing I can’t figure out how to get it to work or IF is is possible. 

<Test flow.png>
[{"id":"dc4e747d.26fc3","type":"debug","z":"fb39137e.04c6f","name":"","active":true,"console":"false","complete":"true","x":431,"y":743,"wires":[]},{"id":"830a089c.595b7","type":"ui_text_input","z":"fb39137e.04c6f","name":"","label":"B","group":"5cc59946.ca757","order":2,"width":"2","height":"1","passthru":false,"mode":"text","delay":"0","topic":"","x":274,"y":775,"wires":[["dc4e747d.26fc3"]]},{"id":"5d33b96e.7c0e28","type":"ui_text_input","z":"fb39137e.04c6f","name":"","label":"A","group":"5cc59946.ca757","order":1,"width":"2","height":"1","passthru":false,"mode":"text","delay":"0","topic":"","x":274,"y":708,"wires":[["dc4e747d.26fc3"]]},{"id":"d61ee5bc.ad0d4","type":"ui_button","z":"fb39137e.04c6f","name":"","group":"5cc59946.ca757","order":3,"width":0,"height":0,"label":"Enter","color":"#ff0000","bgcolor":"","icon":"fa-thumbs-up","payload":"Enter Pressed","payloadType":"str","topic":"","x":88,"y":746,"wires":[["5d33b96e.7c0e28","830a089c.595b7"]]},{"id":"5cc59946.ca757","type":"ui_group","z":"","name":"Text Input Test","tab":"e18f2ad3.00f5","disp":true,"width":"6"},{"id":"e18f2ad3.00f5","type":"ui_tab","z":"","name":"Test","icon":"dashboard"}]

--
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/A017ED6B-C87F-4690-B31D-461525392A91%40zenofmud.org.
For more options, visit https://groups.google.com/d/optout.

Dave C-J

unread,
Mar 9, 2017, 7:04:01 AM3/9/17
to node...@googlegroups.com
Re 1, yes that is the current behavior. I think it would make sense if e also treated loss of focus as the same as enter. So of you move from a field it sends the latest value.
(If you do need both together then yes you need to use a form.)

sent from phone

Zenofmud

unread,
Mar 9, 2017, 7:06:35 AM3/9/17
to node...@googlegroups.com
Yup, the form works for what I want (saw that hint in another thread this morning) I did open another thread on a color issue and reported it as an issue in github
--
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.
Reply all
Reply to author
Forward
0 new messages