Ui-table node cell edit message

Hi,
is it possible to send a cell edited message for editable columns?
with the following callback I always get a recursion error (browser console):

cellEdited: "function(cell){ this.send({topic: \"cellEdited\",payload: cell}) }"

full test-code (sorry as a new user I can't upload files...):

[
    {
        "id": "aaec8c5d.caa23",
        "type": "ui_table",
        "z": "d021b205.92464",
        "group": "67fb37c5.531728",
        "name": "",
        "order": 1,
        "width": "3",
        "height": "2",
        "columns": [],
        "outputs": 1,
        "cts": true,
        "x": 470,
        "y": 440,
        "wires": [
            [
                "84cd9ae5.2aac3"
            ]
        ]
    },
    {
        "id": "4b8ab682.35b9",
        "type": "function",
        "z": "d021b205.92464",
        "name": "Test",
        "func": "var config = { columns: [\n    {\n        title: \"Test\",\n        field: \"colData\",\n        editor: true,\n        cellEdited: \"function(cell){ this.send({topic: \\\"cellEdited\\\",payload: cell}) }\"\n    }\n]};\n\nreturn { payload: [{ colData: \"1\"}, { colData: \"2\"}], ui_control: { tabulator: config } };",
        "outputs": 1,
        "noerr": 0,
        "x": 310,
        "y": 440,
        "wires": [
            [
                "aaec8c5d.caa23"
            ]
        ]
    },
    {
        "id": "84cd9ae5.2aac3",
        "type": "debug",
        "z": "d021b205.92464",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "x": 610,
        "y": 440,
        "wires": []
    },
    {
        "id": "cc423142.2c31e",
        "type": "inject",
        "z": "d021b205.92464",
        "name": "",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "x": 170,
        "y": 440,
        "wires": [
            [
                "4b8ab682.35b9"
            ]
        ]
    },
    {
        "id": "67fb37c5.531728",
        "type": "ui_group",
        "z": "",
        "name": "ui-table Copy & Paste",
        "tab": "7bd459ea.25b468",
        "order": 1,
        "disp": true,
        "width": "17",
        "collapse": false
    },
    {
        "id": "7bd459ea.25b468",
        "type": "ui_tab",
        "z": "",
        "name": "ui-table test",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]
1 Like

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