Okay so I’m in a class and we are supposed to make an app for our final project. I created a realtime DB for the app to store events. I know the save works because the events can be seen in the DB. However, the problem is with getting the data out onto a list. It comes out as an individual character in each list item. Also, does anyone have any ideas on how to parse out characters such as }, :.
Save your list in Firebase as a text string and then when you call it back convert it using the make list from text block in the list drawer. The blocks seem to have an issue saving a list to firebase now and calling them is just as troublesome.
You parse character by repeatedly using this:
You just have the “from letter#” and “to letter#” values controlled in a “count with i” loop.
I do not feel like making a program just to check if this is the case, but I notice that you are converting the text to a list at each “,”. Which means that each “x” will be a text that would have been CLEANED out of any “,”. Which implies that your 'find first occurrence of text “,” ’ will find nothing and return 0.
SORRY I DONT UNDERSTAND U
IT RETURN
can ou show a picture of your data tree?
firebase shouldnt need to be parsed as you have done, although that is one way to do things. its more like breaking down a door instead of using the key/handle
What data do you want to retrieve?
Any data from that return in list individuals
Ex…pass
Return
1
2
3
so thanks
but its worked on label and dont work on list…still return individual character on my list
yes. in programming a list and text are different. you need to use the list block. make text into list.
i would use this block setup in a loop
for each object in DB_response,
in list _listName insert last as get property pass of object j
so thanks
jared for ur efforts but its not working with me and dont return anything
iam so sorry & thanks
Hey @marketandsellbuy8jcb, please don’t type in all caps.
You can use the edit button to change this.
Thanks
its ok now domhnallohanlon
any solution now to make my project ?
Look, this is simple.
Suppose that the step generate JSON from object returns a structure like “field: aaa, comment: bbb, date: 2020/4/10” , then the step make list from text — with delimiter ',' will remove ALL commas.
You will then have a list with the following elements:
{field: aaa}{comment: bbb}{date: 2020/4/10}
Notice the complete absence of “,”? That is because you REMOVED them, converting the string into a list, using comma as delimiter. The commas were NOT preserved. You cannot have your following step depend on looking for the first occurrence, since there is NONE.
can u help me & see whats wrong …the screen called "list "https://x.thunkable.com/copy/e031cdc8fd375f75d8b732f82adc2763
thanks whatever solved or not