Blockly missing block to update a dictionary value

OH 4.3.2

Unless I missed it, I don’t see a way to update the value of a dictionary key, the equivalent in javascript of:

mydict["mykey"] = "newvalue";

I had to use the “inline script” block to do this. It seems that these are the only two blocks for dictionaries:

Am i correct? If so, could it be added?

Open an issue on opebnhab-webui.

Those parts of the menu come from the upstream project so adding it might require going there but starting with openhab-webui is probably the right place.

So I guess from your answer that this is currently a limitation.
I opened an issue like you suggested.
Thanks.

For those who want to follow it:
Blockly missing block to update a dictionary value · Issue #3075 · openhab/openhab-webui

see blockly: set value to key of dictionary by stefan-hoehn · Pull Request #3078 · openhab/openhab-webui · GitHub

1 Like