Need help with Canvas and TinyDB

Hello everyone,

First of all, I'm sorry, but I don't speak English very well. So if my message isn't very clear, don't be surprised.

I'm having a problem with a canvas.
In short, using a sprite, I create lines in a canvas. I'd like it to save all the lines I add to the canvas in a TinyDB, and then, when I select something from a listview, all the lines saved there will reappear in the canvas.

I hope I'm clear in my question.

Thank you in advance.

You create lines... Do you mean lines of text or drawn lines, or something else? Show your relevant blocks and screenshots.

Storing canvas activity or drawings to tinydb is possible, but we need to see what you are doing.

Hello,
Thank you for your reply.
These are drawing lines.


When I click button 1 "Validate," it saves it to a tinydb
And when I click button 2, it should "normally" return exactly the same lines.

Here's the test procedure for creating a "bottom" line.
And in the sprite button, I select the procedures I need to create the walls of my plan.

I hope I'm clear enough.

Thanks again.

Where is the imageSprite ? What does it do ?

Can you please show your button click events?

The sprite image only serves to show where the lines will be created (to get the line coordinates).
What's blocking me is the procedure for saving multiple lines in a TinyDB and loading it when I select the plan name from a selection list.

Where do you reload the list of lines from TinyDB?

And why TinyDB4?

Herewith a simple example to draw lines, record them and restore them after canvas is cleared

basicCanvasRecord.aia (5.4 KB)

BLOCKS

You would store multiple drawings under different tags, and pick the tags from a Listview, if you want to keep multiple drawings.

Thank you very much, your example made me understand my mistake.
Everything works perfectly for backup and restore.