Based on what I observed after adding new data from tinyDB it doesn’t get the latest data that has been added like I need to navigate to other screen and back to it again so that it would refresh and so I can add another value, so I’m assuming more like refreshing the “Screen” to refresh the data that has been stored in tinyDB. I have search similar topic on this and here’s the blocks
but it didn’t work out, is there a better way or what did I missed. thank you everyone!
Yes, something like that because After adding a new data I’m trying to call the tinydb and get the value to check for the validation. Although you give an alternative solution which is refreshingScreen it does work well too.
it’s only a string that I’m adding on it. I need some advice I’m declaring global variable which block is the best to use? Currently I’m using the upper one I’m just confused tho it gives an “X” represents for error but still it does it thing still giving me the output. what practice should I use here upper or bottom?
Anyways thank you all! I already figured it out since I declared a global variable then put the tinydb get block that’s why I need to refresh the screen to it will get the updated data on it just like this image below;
You asked about refreshing tinydb but actually the problem was how to declare global variable. You can’t at initialise declare one item inside another. For example you cannot set a tinydb tag value to a global variable
Yeah I thought at first it’s about refreshing the tinydb but the fact is that I’m actually doing it wrong in getting the value from tinydb. And I did similar to yours atleast I learned something thanks dora!