History should be a list
To add an item to a list, use the add item to list block instead of the join block
Also the item to add is not the complete list Kamus_Technology, but the item, which has been picked (see the circle in the screenshot)
Thank you for the help.
I tried updating my blocks using your suggestion (storing the picked item only, not the whole list).
However, it still doesn’t work properly — the history is not being saved or displayed.
Thank you for the explanation.
I have updated my blocks using add items to list as suggested, and I’m now storing the values properly.
However, it’s still not working as expected.
The history list is not showing or updating correctly.
Thanks for your help.
I tried using the global variable as suggested, but it’s still not working as expected.
The history list is not updating/displaying correctly.
Make sure you have used name tag name, even single space will make problem. Before clicking the listview debug the tinydb get value block, and after clicking the listview again debug the tinydb so you will be come to know.
Also one more easy methid is there however you created this listview using some global variable. So when listview clicked using the get position, get the clicked index and from thus index take the requited item from the global list and save into tinydb
tried using TinyDB.GetValue, but it returns an empty list.
It seems that the data is not being stored properly.
Could you please help me check what might be wrong?
KamusTerminologiIPADuaBahasa (2).aia (6.3 MB)
“In Screen2, there is a layout called ‘History’ that contains the search history. In the ‘Word Screen’, a ListView Image is used, and when an item is clicked, it will be displayed in the History layout.”
what will happen? in tis scrren you are adding the selected items in history tinydb and populating in a listview in screen2 , once again on clicking the same item present in the tinydb when you click again want to add into the same history tinydb? what is your logic?
i find no issue now. But still i feel surprise how can you make click trigger inn screen2? Felt no such trigger when i click anywhere on the mobile. test this aia but remember i have removed the mp3 KamusTerminologiIPADuaBahas (1).aia (4.4 MB)
Each time an item is clicked in the ListView Image, that specific item is saved to TinyDB and then shown in Screen2 using another ListView Image. I am not saving or displaying the full original list — only the items that have been clicked are stored and shown in the history.