Individual characters in list

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 }, :.

Here’s a picture to further show my dilemma.
Screenshot_20190802-123834

3 Likes

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.

1 Like

You parse character by repeatedly using this:

image

You just have the “from letter#” and “to letter#” values controlled in a “count with i” loop.

2 Likes

plz
whats wrong with this
this return individuals character also and i cant find the problem .

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.

2 Likes

SORRY I DONT UNDERSTAND U
IT RETURN date

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

1 Like

I TRY THIS ON MY EXAMPLE

What data do you want to retrieve?

1 Like

Any data from that return in list individuals
Ex…pass
Return
1
2
3

can you try something like this?

1 Like

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

It’s first my question here above
I use that (make text) and not work

for each object in DB_response,
in list _listName insert last as get property pass of object j

1 Like

so thanks
jared for ur efforts but its not working with me and dont return anything
iam so sorry & thanks

1 Like

Hey @marketandsellbuy8jcb, please don’t type in all caps.

You can use the edit button to change this.

Thanks

1 Like

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.

2 Likes

can u help me & see whats wrong …the screen called "list "https://x.thunkable.com/copy/e031cdc8fd375f75d8b732f82adc2763

thanks whatever solved or not