When looking at the Keypad example, it looks like this is exacly what is done. Is it a limitation where a variable can only be used within the same (custom) widgets but not across several widgets in a page?
I can’t say that for sure, but that is how I would expect it to work. There isn’t a mechanism I know of to have widgets interact with each other in that way. Instead of a variable you might be able to use an Item.
Thanks for the idea. It worked when defining variables in the page config. I had come across that thread but I thought that using this configuration would only provide default value to variables.
Thanks for the help but I’d rather not use items for this purpose as I believe UI behaviour specific to one UI type (MainUI feel in this case) should be somehow independent from items and the interaction performance would probably not be as good. Furthermore it affect all UI instances with is not what I am looking for.
The ultimate goal is to select different layers in a canvas page without having to duplicated the page, hence resorting to variables.