Read all firebase tags(son),(grandsoon)

There’s something wrong with firebase that doesn’t allow me to get all the tags if there are only numbers inside.

If I have the structure like this, only with numbers:
Anotación 2020-03-28 204724
It doesn’t let me get anything from inside “alunos”

But if I add a tag with any value below the numbers, then I get all the values.

So I add a “counter” tag with any value (1, for example):

Anotación 2020-03-28 215452

Anotación 2020-03-28 215533

Anotación 2020-03-28 204618
When I get all the tags, if they are all numbers, the last one is the tag “counter”. So I remove the last value from the list of the tags. And there you have the values of all the alunos.

You can put all those values in a Picker and when you select 1, you get the data of that aluno.

The blocks would look something like this:

Anotación 2020-03-28 212800

This way the values of each aluno will appear in the Spinner and when you select it you get all the data.

3 Likes