How add Sequence Numbers To List

Not at all
& So thanks For Response
data as this
usa
i want the list 0 appear :
Alaska – 987.456
newyork — 245.365

1 Like

There is something wrong in the screen shots. There is no consistency.

Your blocks show:
usa
/
region
/

But sometimes
usa
/
country
/

And another time
usa
/
united
/

And now your database screenshot shows only “usa” without the other key (region, country, United)

Are you sure you are using the same database?

1 Like

No
I changed nodes names
The final is state
And getting two list from firebase and successful :palms_up_together: الحمدلله
The problem is when I get all stat and want all numbers in each state

1 Like

I made the app to produce this

This is the code for your reference.


If I understands you right, this is what you want.

1 Like

i 'm sorry … where variable thisstate under the usa ?

1 Like

I didn’t get what you mean.

Please explain more.

1 Like

thanks mr. muneer
variable thisstate

1 Like

Yes thisState variable. What about it. Just a variable. You can call it whatever name you like. It is storing a NUMBER.

You can change the name and call it iLoveThunkable. It will still hold a NUMBER and work the same way.

The important thing is: with this code, did you get the list you want?

1 Like

So So So Thanks Mr .Muneer
i cant do it & understand how linked variable “thisstate” with "state"in firebase
but i will not complete this hard step ( for me) and don’t want waste ur time.
i have a list and make search on it
thanks for ur efforts with me

1 Like

So thanks Mr Muneer
I get It and succeed
its so important For my Project
SO THANKS

1 Like

I’m happy that my code helped you.

1 Like