Hello . Is it possible to reset dropdown node with msg.reset, just like how we did it with text input node? I want it to preserve it's previous msg.payload after each time the value goes to the join node.
This is the first time I input the data, with all the parameter recently inputted:
After that, I tried to change the dropdown value, then push the button and this is how it goes:
The join node immediately receive text input, with it's previous value.
However, when I tried to only change the text value, and then press the button, the join node send nothing. This indicate the msg.reset doesn't work the same as text input.
Is there anything I miss on this case? Or did you guys have a better ideas to do this? I also avoid using subsequent option since there will be time I use timestamp every second, but maybe you guys know how to get over it with some tricks so feel free to share it. Thank you very much
[
{
"id": "0f5d167769d53171",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "7833a85dffc90b56",
"type": "ui_dropdown",
"z": "0f5d167769d53171",
"name": "",
"label": "",
"tooltip": "",
"place": "Select option",
"group": "7c12f85c9c65c62f",
"order": 2,
"width": 0,
"height": 0,
"passthru": true,
"multiple": false,
"options": [
{
"label": "1",
"value": "value1",
"type": "str"
},
{
"label": "2",
"value": "value2",
"type": "str"
}
],
"payload": "",
"topic": "topic",
"topicType": "msg",
"className": "",
"x": 160,
"y": 40,
"wires": [
[
"279812b4b328ae27"
]
]
},
{
"id": "e0a5e02062fc1e3a",
"type": "ui_text_input",
"z": "0f5d167769d53171",
"name": "",
"label": "",
"tooltip": "",
"group": "7c12f85c9c65c62f",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"mode": "text",
"delay": "0",
"topic": "topic",
"sendOnBlur": true,
"className": "",
"topicType": "msg",
"x": 160,
"y": 200,
"wires": [
[
"53dbcd14344deb58"
]
]
},
{
"id": "a68cfc105b2d9bdc",
"type": "join",
"z": "0f5d167769d53171",
"name": "",
"mode": "custom",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "3",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 570,
"y": 140,
"wires": [
[
"3d132138993efd1a",
"b153696f302252d2"
]
]
},
{
"id": "3d132138993efd1a",
"type": "change",
"z": "0f5d167769d53171",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "reset",
"tot": "msg",
"dc": true
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 720,
"y": 200,
"wires": [
[
"e0a5e02062fc1e3a",
"7833a85dffc90b56"
]
]
},
{
"id": "b153696f302252d2",
"type": "debug",
"z": "0f5d167769d53171",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 730,
"y": 100,
"wires": []
},
{
"id": "782190ab1cbe319e",
"type": "ui_button",
"z": "0f5d167769d53171",
"name": "",
"group": "7c12f85c9c65c62f",
"order": 3,
"width": 0,
"height": 0,
"passthru": false,
"label": "button",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"x": 250,
"y": 260,
"wires": [
[
"d01550a22653970f"
]
]
},
{
"id": "d01550a22653970f",
"type": "change",
"z": "0f5d167769d53171",
"name": "",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "button",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 430,
"y": 260,
"wires": [
[
"a68cfc105b2d9bdc"
]
]
},
{
"id": "53dbcd14344deb58",
"type": "change",
"z": "0f5d167769d53171",
"name": "",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "text",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 160,
"wires": [
[
"a68cfc105b2d9bdc"
]
]
},
{
"id": "279812b4b328ae27",
"type": "change",
"z": "0f5d167769d53171",
"name": "",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "dropdown",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 370,
"y": 40,
"wires": [
[
"a68cfc105b2d9bdc"
]
]
},
{
"id": "7c12f85c9c65c62f",
"type": "ui_group",
"name": "Default",
"tab": "bdf6348413fab83a",
"order": 1,
"disp": false,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "bdf6348413fab83a",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]