Hi Developers,
As you'll notice in the code below, I'm only using the flow.get method, I'm not using the set method anywhere.
Unfortunately, despite entering anything into the text node, my flow variable in memory also changes.
This is only a piece of larger code but in no way connected to the set node.
Is it possible for permanent connections between variables to be created in memory?
If this is my misunderstanding how the flow variable works, I am asking you to explain the topic, because a similar situation is repeated to me once again.
Thank you very much in advance,
[{"id":"b53f8ee9.72e64","type":"ui_text_input","z":"4f628beb.1dcd94","name":"","label":"Search","tooltip":"","group":"b167cd49.01a55","order":3,"width":"15","height":"1","passthru":false,"mode":"text","delay":300,"topic":"","x":2080,"y":1740,"wires":[["2c5a231a.2f80ec"]]},{"id":"3315b74e.e907a8","type":"debug","z":"4f628beb.1dcd94","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":2390,"y":1740,"wires":[]},{"id":"2c5a231a.2f80ec","type":"function","z":"4f628beb.1dcd94","name":"filter out wrong","func":"var filter = msg.payload.toUpperCase();\nvar table = flow.arr_files_2\nfor (i = 0; i < table.length;) {\n txtValue = table[i].filename;\n var result=txtValue.toUpperCase().indexOf(filter)\n if (result == -1) {\n table.splice(i,1);\n i=i;\n }\n else{\n i++;\n }\n}\nmsg={payload:table};\nreturn msg;","outputs":1,"noerr":0,"x":2240,"y":1740,"wires":[["3315b74e.e907a8"]]},{"id":"b167cd49.01a55","type":"ui_group","z":"","name":"Files to 3D Print","tab":"ee117b0d.a1ea48","order":2,"disp":false,"width":"27","collapse":false},{"id":"ee117b0d.a1ea48","type":"ui_tab","z":"","name":"Michał Woźniak","icon":"dashboard","order":3,"disabled":false,"hidden":false}]