Bonjour,
ne ne parviens pas à faire fonctionner le tableau dans le dashboard 2
pouvez vous m'aider.
voici l'erreur.
(existingData.payload || ) is not iterable
voici le code.
</>
[
{
"id": "a5f7d8ee1bff0b49",
"type": "inject",
"z": "f6f2187d.f17ca8",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 1070,
"y": 220,
"wires": [
[
"43296b7153e2a8df"
]
]
},
{
"id": "43296b7153e2a8df",
"type": "function",
"z": "f6f2187d.f17ca8",
"name": "function 17",
"func": "\nmsg.payload = [{\n \"Temp1\": \"A\",\n \"Temp2\": \"Hello\",\n \"Temp3\": 3\n}, {\n \"Temp1\": \"B\",\n \"Temp2\": \"World\",\n \"Temp3\": 5\n}]\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1110,
"y": 280,
"wires": [
[
"3656a64ae2d93e72"
]
]
},
{
"id": "3656a64ae2d93e72",
"type": "ui-table",
"z": "f6f2187d.f17ca8",
"group": "37570166b99b64ed",
"name": "TABLE TEMP",
"label": "",
"order": 1,
"width": 0,
"height": 0,
"maxrows": "250",
"passthru": false,
"autocols": false,
"showSearch": false,
"deselect": true,
"selectionType": "none",
"columns": [
{
"title": "Degraissant",
"key": "Temp0",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
},
{
"title": "Passivation",
"key": "Temp1",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
},
{
"title": "Temp Four1",
"key": "Temp2",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
},
{
"title": "Temp Four2",
"key": "Temp3",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
},
{
"title": "Temp Four3",
"key": "Temp4",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
},
{
"title": "Temp Four4",
"key": "Temp5",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
},
{
"title": "Temp Four5",
"key": "Temp6",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
},
{
"title": "Temp Four6",
"key": "Temp7",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
},
{
"title": "Temp Four7",
"key": "Temp8",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
},
{
"title": "Temp Four8",
"key": "Temp9",
"keyType": "key",
"type": "text",
"width": "",
"align": "start"
}
],
"mobileBreakpoint": "lg",
"mobileBreakpointType": "defaults",
"action": "append",
"className": "",
"x": 1120,
"y": 340,
"wires": [
[]
]
},
{
"id": "37570166b99b64ed",
"type": "ui-group",
"name": "LAQUAGE TABLE",
"page": "22b928e5ab3b20d5",
"width": 6,
"height": 1,
"order": 1,
"showTitle": true,
"className": "",
"visible": "true",
"disabled": "true",
"groupType": "default"
},
{
"id": "22b928e5ab3b20d5",
"type": "ui-page",
"name": "LAQUAGE TABLE TEMP",
"ui": "3431badcf05e436e",
"path": "/page2",
"icon": "home",
"layout": "grid",
"theme": "f89b0f2026b658b0",
"breakpoints": [
{
"name": "Default",
"px": "0",
"cols": "3"
},
{
"name": "Tablet",
"px": "576",
"cols": "6"
},
{
"name": "Small Desktop",
"px": "768",
"cols": "9"
},
{
"name": "Desktop",
"px": "1024",
"cols": "12"
}
],
"order": 1,
"className": "",
"visible": true,
"disabled": true
},
{
"id": "3431badcf05e436e",
"type": "ui-base",
"name": "Dashboard",
"path": "/dashboard",
"appIcon": "",
"includeClientData": true,
"acceptsClientConfig": [
"ui-notification",
"ui-control"
],
"showPathInSidebar": false,
"headerContent": "page",
"navigationStyle": "default",
"titleBarStyle": "default",
"showReconnectNotification": true,
"notificationDisplayTime": 1,
"showDisconnectNotification": true,
"allowInstall": false
},
{
"id": "f89b0f2026b658b0",
"type": "ui-theme",
"name": "Default Theme",
"colors": {
"surface": "#ffffff",
"primary": "#0094CE",
"bgPage": "#eeeeee",
"groupBg": "#ffffff",
"groupOutline": "#cccccc"
},
"sizes": {
"density": "default",
"pagePadding": "12px",
"groupGap": "12px",
"groupBorderRadius": "4px",
"widgetGap": "12px"
}
},
{
"id": "c9a62f75a59b66d7",
"type": "global-config",
"env": [],
"modules": {
"@flowfuse/node-red-dashboard": "1.30.1"
}
}
]
</>



