1
I am developing an app that is composed of 3 fragments of registration, here given the example of A, B, C, and B and C is dependent on A.
What is the best way to enter the completed data in B and C in the same Fragment A Child within Firebase.
I used it on Fragment A:
.child("Profissional").child(idUsuario).child("A").push().setValue(this);
and B and C:
firebase.child("Profissional").child(idUsuario).child("A");
However while saving I lost the data Saved from Fragment A.
what is the firebase structure?
– Costamilam
I inserted the image with the question. I could not relate the Child (Evolution) and (Readiness) to the Patient. I tried to directly save the data in Child(Patient), but the data is on post.
– Rodiney Pereira da Silva
In the case of B and C, instead of using the
setValue
, use theupdateChildren
– Rosário Pereira Fernandes