I'm back again after some changes that may make things clear in my blocks.
I really agree that store tags with numbers didn't seem to work well, so I changed the way all clients were stored to a dict. This way we can get the correct tags. I need a little help doing it using Firebase Govalue and GetTag. How can I store all the tags called nomecli inside a listpicker? Just don't give attention to the block with that red square, that was just a failed experiment. Inside clientes I want to get all tags nomecli and display them into a list. I know I asked it for a thousand million times, but I know I still got a lot to learn with MIT.
Did you try it ? What happens ?
Did you set the indexon in the firebase rules for nomecli?
Why do you set ?auth="token" if your rules are read and write true ?
I tried it and it's still retrieving the entire data. The rules are "open" just for test, the final version of the app won't be open. I'm getting a message error that says the elements can't receive "cpfcli:08222132112", "nomecli:Joaquim da Silva", "all clients data". Can I upload my iai project so you can take a look?
No, I would like to change it according to the search filter (spinner). If the user select spinner index 2 (nome), it should return all nomecli from database in a listpicker, if the user select index 3 (cpf/document number) it should return all cpfcli from database in a listpicker. So I would need to change it according to the user's choice. I think there are just 4 different kinds of variables at the spinner.
Read All, but Write only to a User's Area
Here, we allow anyone to read data, but only authenticated content owners can make changes to their data. You will see here that an additional level of "uid" has been added. This uses the uid or localId or the user (you see this on the Authentication page). When adding data this "uid" has to be included in the "path".
"rules": {
"<ProjectBucket>": {
"$uid": {
".read": "auth.uid != null",
".write": "auth.uid == $uid"
}
}
}
Hi TIM! I made part of what was proposed me to build. The Filter using the spinner is working well, but I have 2 questions, I hope you can help me, here we go:
1 - When I hit the button to read all the values of the tags "nomecli" the listpicker only get the last client stored in database, I would like to get all values from the tags "nomecli". Am I missing somthing in my blocks?
2 - When I close the app and open it again, if we press the read data button from the spinner the listpicker stands empty, is this about the rules I'm using, read and write = true? It only works well right after we register a client.
Oh yeah! I need to save them into a list! Not only return from the DB. About the login, I think it's working, because everytime I log in, when authenticated, the user ID Token and Email is shown at the top window. So I think it's working good.
Is there a way to return a single variable using the JOIN block with the web gotText?