I am saving the dynamic component text in a tinydb to get the saved text on another screen.
I can successfully save the text data in tinydb by assigning an incremental number as a tag but I can’t find any solution to check the existing tinydb value before storing the same dynamic component text in tinydb to avoid duplication.
Can anyone provide a solution of it? Please let me know if you need more information.
But why you are storing the Label2.Text in multiple tags of TinyDB? Instead you can add the label text in a list and store that list in TinyDB under one single tag.
For your displayed blocks, it’s obvious to show the error if you use my method showed in previous reply.
I am using the Dynamic component and I am storing different text each time in Label2.Text means the value of Label2.Text change each time I store in TinyDB.
I am saying that instead of maintaining different tags you can store you Label2.Text in a list and store that list in TinyDB itself. Then when you want to store new Label.text then simply you store it in this list saved in tinyDB
There is one problem with this. It works only when the same screen is open as text is being stored in list but when I refresh the screen or open the app again, list is empty and it doesn’t check the previous values stored in it.
So I think I have to check tinydb for checking the existing data. So how can I do that?
Any help?