List Viewer only displaying 1 element

I am working on a project, and I have many sections of code identical to the attached. The goal when any button is pressed, the time is recorded and stored. When 'history' is clicked however, only the first button/time I press will be displayed on the List Viewer (even after I press it again). Please help!

use a procedure to keep your code "dry"...
DRY - Don't Repeat Yourelf

and read tag dbmoods from TinyDB to get the latest list before displaying it in the listviewer
you are switching screens and my guess is, you forgot to read the tag after coming back to the current screen...
Taifun


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

Here's a logger procedure that saves to TinyDB ...

logger_to_TinyDB_list.aia (3.0 KB) when btnEnter Click