node-red-ui-nodes icon indicating copy to clipboard operation
node-red-ui-nodes copied to clipboard

Tabulator getData() function from node-red-node-ui-table does not work

Open AutomationTeam-ATeam opened this issue 2 years ago • 0 comments

Which node are you reporting an issue on?

ui_table

What are the steps to reproduce?

This flow reproduces the problem by pressing the "inject" node and then the "getData I hope :( "

[{"id":"de2c6c81b2ec7895","type":"inject","z":"c7385e40ec885b88","name":"setFilter","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":4440,"wires":[["a8353248b6751851"]]},{"id":"a8353248b6751851","type":"change","z":"c7385e40ec885b88","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"setFilter\",\"arguments\":[\"_field\",\"=\",\"AL_26\"]}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":4440,"wires":[["dd3aa6266a890940"]]},{"id":"e9d002542953587d","type":"inject","z":"c7385e40ec885b88","name":"clearFilter","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":4480,"wires":[["143bb4c116ed342c"]]},{"id":"143bb4c116ed342c","type":"change","z":"c7385e40ec885b88","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"setFilter\",\"arguments\":[]}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":4480,"wires":[["dd3aa6266a890940"]]},{"id":"5b79b10dc5f01539","type":"inject","z":"c7385e40ec885b88","name":"getData I hope :( ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":4540,"wires":[["182978d006fb74f6"]]},{"id":"182978d006fb74f6","type":"change","z":"c7385e40ec885b88","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"command\":\"getData\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":4540,"wires":[["dd3aa6266a890940"]]},{"id":"dd3aa6266a890940","type":"ui_table","z":"c7385e40ec885b88","group":"b4dbdd58e318a538","name":"All Var / Click for Add","order":1,"width":13,"height":8,"columns":[{"field":"id","title":"ID","width":"8%","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"_field","title":"field","width":"25%","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"_measurement","title":"description","width":"65%","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}}],"outputs":1,"cts":true,"x":700,"y":4360,"wires":[["913fdb876f80c467"]]},{"id":"913fdb876f80c467","type":"debug","z":"c7385e40ec885b88","name":"debug 38","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":4360,"wires":[]},{"id":"65451f128399dbc9","type":"inject","z":"c7385e40ec885b88","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"result\":\"_result\",\"_field\":\"AL_26\",\"_measurement\":\"$hmi_type=alarm;26\",\"id\":0},{\"result\":\"_result\",\"_field\":\"AL_27\",\"_measurement\":\"$hmi_type=alarm;27\",\"id\":1},{\"result\":\"_result\",\"_field\":\"AL_28\",\"_measurement\":\"$hmi_type=alarm;28\",\"id\":2},{\"result\":\"_result\",\"_field\":\"AL_29\",\"_measurement\":\"$hmi_type=alarm;29\",\"id\":3}]","payloadType":"json","x":170,"y":4360,"wires":[["dd3aa6266a890940"]]},{"id":"b4dbdd58e318a538","type":"ui_group","name":"All Variable","tab":"57919ce9323b6745","order":2,"disp":true,"width":"13","collapse":false,"className":""},{"id":"57919ce9323b6745","type":"ui_tab","name":"Report Influx","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

What happens?

Using the getData() function, neither the data present in the table nor error messages are returned

What do you expect to happen?

The data present in the table are returned to the output of the ui_table node.(like when you press a table row) Instead the other commands work fine.

Please tell us about your environment:

  • Node-RED version: 3.0.2
  • node.js version: 14.20.0
  • Platform/OS: windows 10
  • node-red-node-ui-table: 0.3.12

More info

The question was previously opened here

AutomationTeam-ATeam avatar Apr 21 '23 10:04 AutomationTeam-ATeam