3
How to make an increment only on Child period of all students enrolled in Firebase?
Ex.: in SQL, I would use:
UPDATE alunos
SET periodo = periodo + 1
Updating all students to their later period. How can I do in Firebase?
3
How to make an increment only on Child period of all students enrolled in Firebase?
Ex.: in SQL, I would use:
UPDATE alunos
SET periodo = periodo + 1
Updating all students to their later period. How can I do in Firebase?
2
I was able to accomplish what I needed by adapting the code below
DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();
DatabaseReference usersRef = rootRef.child("users");
ValueEventListener eventListener = new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
String true = "true";
for(DataSnapshot ds : dataSnapshot.getChildren()) {
ds.child("SubmitCheck").getRef().setValue(true);
}
}
@Override
public void onCancelled(DatabaseError databaseError) {}
};
usersRef.addListenerForSingleValueEvent(eventListener);
Browser other questions tagged android firebase
You are not signed in. Login or sign up in order to post.
James, edit your question and your issue, which was the solution, add as an answer to this question.
– Ismael
@Ismael ready. Thanks for the suggestion! I’m new as a stack user.
– Tiago Emerenciano
@Henrique ready. Thanks for the suggestion! I’m new to the stack.
– Tiago Emerenciano