Save button color in Tinydb

Hello friends I need help
I have a screen with several buttons. By clicking on any of them I change the color.
How can I save it in tinyDB and then recover it as with the color of the button that I put on it.
Thanks and greetings to the community

Welcome.

Thanks for answering.
It works perfectly with a single button, but I want to do it with ten buttons (using AnyComponent)
This block should work to save the color of the button pressed, but it doesn’t work and I don’t know why.
Then I want to recover the buttons with the selected color
blocks (1)

any screenshot of that part?
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select “Download Blocks as Image”. You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun

Hi
What I want to do is:
I have a screen with 20 buttons
When you press any button, it changes to green and should be recorded.
When the screen is initialized only the buttons that have been pressed should be colored.
The block below SHOULD work, but it doesn’t work
Then I need the blocks to recover the screen with the colored buttons, but I don’t know how to do it.

blocks (2)