Using local variables to fill a ListView

Hey all, I was wondering if I could use a local variable to fill a list view. Im building a workout app, and I want to display both the exercise and the amount through text boxes, then having it clear after I press save. I already am using a global variable to save it my TinyDB so I can access it elsewhere, but if I use the global variable to fill the list it will just add the list rather than replace it. Does anyone know if it is possible to use a local variable in this way?

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.


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

… makes no difference if the var is Global or Local. Clear the List, then fill it with the new data. Something similar to this:


Thank you so much, you’re really helped me out!