Hi.
I'm trying to store data in firebase and then show them in the new list view with image and text.
I have a problem with the format of the data and I haven't all the knowlege about the right format of json and why I got two different type.
The second format works right , the first doesn't work in list view.
This is the code I'm using now and works good, no sub tags and all the data in the main bucket.
This is the code that doesn't work, with sub tags, I can store it and retrive but when I manage the data with dictionary block (get value at key path) to add in the list , I can't show the value correctly in the list view
The format with sub tag is better for me to search data in db but I fix with the new code and a little of code to search,bur my question is about the format and how I can fix the problem and why this difference. I'm curious to know the technical information. Thanks
You do not show how you are retrieving the data, for both methods.
FWIW, the first result you show is displaying each set of list data as a string, in a list, whilst the second result shows all the data as a properly formatted json.
Also, why not use the CreateElement block to store your data?
Sorry
I saw a guide in the forum , I call all the tag and with a for each I save them in dictionary to use the power of dictionary according to my knowledge
Thanks but why if I add sub tag changes the format ?
Because I didn't knew I can use it in this way. Very nice . I will try. Thanksl
And with this method , how to manage data after retrieved from firebase ?
I saved the data in dictionary to learn and improve all the blocks, study new way to store, new structure, I think is very powerful to manage data . I'm learning
I will do some test. If you see the first button Store is very different , the tag is the full date, instead in the second button Store I tried to create subtag for years, months to easy search my data.
Now I fix with no subtag and the search bar of the listview but I don't like a lot, I will try your hints to save, to learn new things, but I don't know if lists are good for my search.
My goal is to search all the data of july or all the data of 2024 etc
And thanks again
Oh my God,yes of course
It's time to bed
Probably to manage data for my goal is more difficult that the method I'm using now with dictionary , but I want to try, to thank you for the help