My app and Firebase are working properly, and now I want the app to “filter” data from Firebase, more especifically from column BOX. So, if I say that I want to see box 1, I want the app to look in my database and only display those cells to me.
Thank you for your reply. I changed the starting number of the list to 0 (my mistake!) and this variable “sizeDB” is a number I add manually in the global variable. I didn’t know how to code to return the size of my DB and this way I solved my problem temporarily.
Working with localDB was perfect for me, except that I couldn’t update the value. I changed my whole app to work with firebase, but now I struggle with simple things like filtering it.
The first exemple, when I want the app to store a VALUE if VALUE=0, it returns an empty list. But if I remove the IF statement (my filter), and ask the app to build the list, it runs perfectly and returns all items I have there.
(Don’t know why, but I have to ask the app to wait 1 second otherwise it returns repetitive itens)
Then if I ask it to display the error message, it crashes. No matter where the error is put (inside/outside the IF statement)
Yesterday I also struggled the entire day to put a IF statement inside a “Call from database” statement. It only works without IF. This is why I tried to write a query in the KEY. The proble is that I don’t know how to write… I think it should be something like: