Remove an element from the list tinyDB

I saved in tinyDB some elements (more than 10 elements), i want to remove selected elements in tinydb list, is there any way
File:
deleteTinydb.aia (82.1 KB)

Screen1


Screen2

@HaAnh_DC Do this when delete button is clicked

And Here is full block that will Also refresh the list view

1 Like

Please help me, here is my aia file

deleteTinydb.aia (82.1 KB)

Ok @HaAnh_DC I will surely help you

1 Like

I want to delete element at Screen 2

1 Like

try this,

Updated:

image

But selected item will not be removed from the listview.
(since the items are retains in the listview we have to alert the user next time if they try to remove already removed item.)

is there any way to reload listview?

thats why i asked… wait

Try this

1 Like

tyr this,

image

Once the user selects, item will be removed from listview as well as from tinyDB

1 Like

Thank you: dora_paz and Still-learning helped me enthusiastically and gave me a solution.
Thank so much!

2 Likes

thank you. If you want to delete instantly use my procedure. If you want to delete the item by a button, then follow dora mam procedure. Both will work. You can take as per your situation.

2 Likes

Wait I am also doing this wait for 5 minutes i will give aia

Here is Aia @HaAnh_DC i have done it
deleteTinydb.aia (82.6 KB)
and also a video how this is working


Mark Solution if this is working for you !

1 Like

thank you so much! it’s very helpful

1 Like

if this worked then you can mark solution :grin: :grin:

@Jinx those blocks won’t work

image

this will

image

1 Like

My Dear @dora_paz have you seen my provided video ? :expressionless: :expressionless:

You are setting listview element to global variable and that is the reason you think it works, if you refresh screen you will see that data isn’t removed fron tinydb. In video I delete first item from list and when screen refreshed it is there

2 Likes

Ok I got my mistake .
Thanks you are great @dora_paz

1 Like