Hi all
For my project I would need to get the data present in a table of the ui-table node.
Reading the tabulator documentation I found the getData command which seems to do just for me.
Unfortunately at the moment I'm not able to use it, I managed to use the other commands such as setFilter, addRow and deleteRow but the getData command really doesn't work.
Can anyone tell me why?
I'm using the command like this
[{"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}]
But in the debugger neither errors nor messages appear when I make an injection
While I expect this data.