How to save and display click history using TinyDB and ListView Image?

KamusTerminologiIPADuaBahas (1).aia (4.4 MB).
Thank you, the history feature is now working. I would like to improve it by making the most recently clicked item appear at the top of the history list and also avoid adding duplicate entries. If the item already exists in the history, I don’t want it to be added again. How can I do this using Kodular blocks?

In the kata screen if the listview clicked just add this

If not is in list thing make a list (get image, title, subtitle, position) 
Then // use add items to the list 
Else // throw an alert this was already existing
1 Like

Where can I find the option to throw an alert that says “this was already existing”?


Something like this

Nope. Here you have added like

If get History - thus is wrong

If not is in list list- get history, item make al list get image, get title, get subtitle)
Then use add items blocks
Else use alert black

1 Like

I made a history using ListView Image, but items are duplicated and new items show at the bottom. How can I avoid duplicates and show new items at the top?

First clear the tinydb and then try

1 Like

Thank you for your suggestion. I have tried using the block as advised, but unfortunately it doesn’t seem to work as expected on my side.