Insert additional data into Firebase

Asked

Viewed 100 times

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.

inserir a descrição da imagem aqui

  • what is the firebase structure?

  • 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.

  • In the case of B and C, instead of using the setValue, use the updateChildren

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.