The Donate part works fine I see it in the list. I have two questions
Now I want to browse the RequestBkt. One solution is to just duplicate what I do for DonateDB just replace it with RequestDB. That is not elegant, clumsy and clutters. So when BrwRequestBtn is pressed or as a matter of fact if there are 10 such FDB's depending on the Button pressed I want the FDB name to change programmatically. Then all I need is only one set of the block. How do I do it? Please help
I have observed in the browsed output the order is always Donor1, Donor3, Donor2 even when I have more than that there is always a mix up. Is it expected way of reading back the FDB or it it a bug in my program. Thanks again.
Thanks TIMAI2 here are the the clarifications. Sorry for the delay just got up.
Proof of Concept, the objective of this program is to understand a concept
The contents are not related,
"as a list" Yes I thought so, but couple of video tutorials on List said to avoid it if possible and they are not stable. I will give that try. Thanks
Got it, I can sort it later was just checking
Yes FDB is FirebaseDataBase, sorry I should not have shortened it.
10 was a random number I picked. For now I need only 3 FDB's, 10 was just a random number I picked for the futre. I have three Project buckets. The app is for needy people to make a Request for food(ReqDB), for restaurants and like to Donate excessive food (DonateDB) and there is UserIdDB which stores the user info. Each FDB might have thousands of entries. The app will connect one to the other.
Switching of FDB: I will give a C language kind of explanation:
Command line argument might be like app.exe DonateFood where app.exe is the application executable and DonateFood is the user input
switch(UserInput) {
case(DonateFood):
XButtonClicked = DonateBtnClicked;
XFDB = DonateDB;
break;
case(RequestFood):
XButtonClicked = RequestBtnClicked;
XFDB = RequestDB;
break;
..................
.....................
}
when(XButtonClicked is clicked) {
use XFDB and do your work
}
So this variables starting with X are variables and can have values on what the user has requested. So in that way I dont have to repeat the blocks. Just one logical block and I make the decision before entering the block. My assumption is MIT app might have that kind of feature.
I am still slightly confused as to why you need to use three different firebase projects? You should be able to just use one (as you have shown in your console image)? (Or do you mean three different projectBuckets ?)
In which case, AI2 provides the blocks to be able to set different projectBuckets at runtime, in order to access different parts of the Firebase database. You can automate this to a degree...