Hello.
I'm trying to use Dashboard 2 to modify data table. I have array of objects. Using table node, it shows data correctly.
What I want now is way to modify, delete or add one row. I can't find a suitable way to implement this.
I tryed to spilt data what comes from table to text , but it just creates one text input, but it just creates one text input.
[
{
"id": "6318d358c35cb96c",
"type": "inject",
"z": "f4e91fc1157ba250",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "[{\"age\":\"30\",\"email\":\"john@example.com\",\"name\":\"John Doe\"},{\"age\":\"2\",\"email\":\"mäyrä@puuta.com\",\"name\":\"Matti Mäyrä\"}]",
"payloadType": "json",
"x": 230,
"y": 180,
"wires": [
[
"7a99fb6c0cf9a8ba"
]
]
},
{
"id": "7a99fb6c0cf9a8ba",
"type": "ui-table",
"z": "f4e91fc1157ba250",
"group": "08b7ab3ba99f1b59",
"name": "",
"label": "text",
"order": 1,
"width": 0,
"height": 0,
"maxrows": 0,
"passthru": false,
"autocols": true,
"selectionType": "click",
"columns": [],
"x": 390,
"y": 180,
"wires": [
[
"e6f8a62b657f2fad"
]
]
},
{
"id": "e6f8a62b657f2fad",
"type": "split",
"z": "f4e91fc1157ba250",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 550,
"y": 180,
"wires": [
[
"811d33cb1c80b798"
]
]
},
{
"id": "811d33cb1c80b798",
"type": "ui-text-input",
"z": "f4e91fc1157ba250",
"group": "08b7ab3ba99f1b59",
"name": "",
"label": "text",
"order": 0,
"width": 0,
"height": 0,
"topic": "topic",
"topicType": "msg",
"mode": "text",
"delay": 300,
"passthru": false,
"sendOnDelay": false,
"sendOnBlur": true,
"sendOnEnter": true,
"className": "",
"x": 730,
"y": 180,
"wires": [
[]
]
},
{
"id": "08b7ab3ba99f1b59",
"type": "ui-group",
"name": "SoilScout_GroupMAPs",
"page": "ba5c4163cb3524c6",
"width": "12",
"height": "3",
"order": 1,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "ba5c4163cb3524c6",
"type": "ui-page",
"name": "SoilScout",
"ui": "f731607ac0ba6874",
"path": "",
"icon": "home",
"layout": "grid",
"theme": "7a043fbb81327bca",
"order": -1,
"className": "",
"visible": "true",
"disabled": "false"
},
{
"id": "f731607ac0ba6874",
"type": "ui-base",
"name": "UI Name",
"path": "/dashboard",
"includeClientData": true,
"acceptsClientConfig": [
"ui-notification",
"ui-control"
],
"showPathInSidebar": false,
"navigationStyle": "default"
},
{
"id": "7a043fbb81327bca",
"type": "ui-theme",
"name": "Theme Name",
"colors": {
"surface": "#ffffff",
"primary": "#0094ce",
"bgPage": "#eeeeee",
"groupBg": "#ffffff",
"groupOutline": "#cccccc"
},
"sizes": {
"pagePadding": "12px",
"groupGap": "12px",
"groupBorderRadius": "4px",
"widgetGap": "12px"
}
}
]
I tryed to create all kinds of form html templates, if I can create input fields, submit button does not work.
But there must be real, and good way to just edit row in ui-table?