I stored values in the firedb, 4 tags with 4 values and i got them using getvalue now I want to store these values to a global variable
how to do that using when firedb got variable
thank you
I stored values in the firedb, 4 tags with 4 values and i got them using getvalue now I want to store these values to a global variable
how to do that using when firedb got variable
thank you
Use the gotValue event block
https://ai2.appinventor.mit.edu/reference/components/experimental.html#FirebaseDB
When each of those 4 requests' tag and value arrives, you need to store them somewhere.
There are several options you could pursue:
Since you probably want all of those 4 values to arrive before proceeding further in your app, you would need to clear those 4 values before the first read request, and check all 4 after each value arrives.
Another alternative would be to ask for the entire bucket where they live, and deal with the incoming dictionary.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.