How to searchRows in UI-table

Goodmorning,
I'm using an Ui-table where, I can addOrUpdate dinamically the content but I cannot searchRows correctly. What I'm doing wrong?

Besides I ask your opinion, in case I need to transfer some data from one table to another pressing a button and erase them from the old table, how would you do that?

[{"id":"7632a5bc.63f174","type":"function","z":"b4d448ed.fc828","name":"table parameter","func":"msg.ui_control = {\n    \"customHeight\":12,\n    \"tabulator\": {\n        \"selectable\":true,\n        \"movableColumns\": false,\n        \"autoColumns\": true,\n        \"selectableRangeMode\": \"click\",\n        //\"cellEdited\":\"function(cell) {var change = {newValue:cell.getValue()}; this.send({topic:this.config.topic,ui_control:{callback:'cellEdited',changes:change, id:cell.getRow().getCell('address').getValue()}});}\",\n        //\"renderComplete\":\"function() {this.send({ui_control:{callback:'renderComplete'}})}\",\n        \"rowSelectionChanged\":\"function(data, rows) {\" + \n            \"var selectedRows = []; rows.forEach(function(row) {selectedRows.push(row.getData());});\" +\n            \"this.send({topic: this.config.topic, payload: data, selectedRows: selectedRows, ui_control: {callback: 'rowSelectionChanged'}});}\",\n        \"columns\":[\n            {\n                \"field\": \"id\",\n                \"title\": \"Address\",\n                \"visible\": false,\n                \"resizable\":false\n            },\n            {\n                \"field\": \"machineType\",\n                \"title\": \"Machine Type\",\n                \"resizable\":false\n            }\n        ],\n        \"data\":[\n\t        {id:1, machineType:\"V300\"}\n        ]\n    },\n};\n\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":550,"y":1740,"wires":[["5d7460b5.88df8"]],"info":"\nif (msg.hasOwnProperty('ui_control') && msg.ui_control.callback === \"renderComplete\") {\n    var msgOut={\n        payload:{\n            command:\"selectRow\",\n            arguments: [1],\n            returnPromise: false\n        }\n    }\n    return msgOut;\n}"},{"id":"9f9dde2e.d3a1d","type":"debug","z":"b4d448ed.fc828","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":870,"y":1800,"wires":[]},{"id":"cce948a3.2ae788","type":"function","z":"b4d448ed.fc828","name":"UnconnectedListOperations","func":"\nmsg.payload = {\n    command: \"searchRows\",\n    arguments: [\n        [\n            {field: \"machineType\", type: \"=\", value: \"V300\"}\n        ]\n    ],\n    returnPromise: true\n};\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":1800,"wires":[["5d7460b5.88df8"]]},{"id":"9cd423d2.580758","type":"inject","z":"b4d448ed.fc828","name":"Populate","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":360,"y":1740,"wires":[["7632a5bc.63f174"]]},{"id":"5dba1aa9.b959f4","type":"inject","z":"b4d448ed.fc828","name":"Command","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":300,"y":1800,"wires":[["cce948a3.2ae788"]]},{"id":"5d7460b5.88df8","type":"ui_table","z":"b4d448ed.fc828","group":"8f6d5436.0e2ac","name":"Node","order":2,"width":"7","height":"5","columns":[{"field":"id","title":"Address","width":"","align":"center","formatter":"plaintext","formatterParams":{"target":"_blank"}},{"field":"machineType","title":"Machine Type","width":"","align":"left","formatter":"plaintext","formatterParams":{"target":"_blank"}}],"outputs":1,"cts":true,"x":730,"y":1800,"wires":[["9f9dde2e.d3a1d"]]},{"id":"8f6d5436.0e2ac","type":"ui_group","name":"UnconnectedNode","tab":"afe6a11e.75bc5","order":1,"disp":true,"width":"7","collapse":false},{"id":"afe6a11e.75bc5","type":"ui_tab","name":"Database","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

Thank you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.