Listview:multiple array


#1

Hi,

I have a problem with problem with Listview:

It is my array:

[
JS:     {
JS:         "Ae": [
JS:             {
JS:                 "establishmentName": "Ae Es",
JS:                 "establishmentNumber": 7340,
JS:                 "establishmentId": 444
JS:             },
JS:             {
JS:                 "establishmentName": "Ae Curri",
JS:                 "establishmentNumber": 734,
JS:                 "establishmentId": 432
JS:             },
JS:             {
JS:                 "establishmentName": "Ae Des",
JS:                 "establishmentNumber": 734,
JS:                 "establishmentId": 434
JS:             },
JS:             {
JS:                 "establishmentName": "Ae Guada",
JS:                 "establishmentNumber": 734,
JS:                 "establishmentId": 436
JS:             },
JS:             {
JS:                 "establishmentName": "Ae Ro",
JS:                 "establishmentNumber": 734,
JS:                 "establishmentId": 437
JS:             },
JS:             {
JS:                 "establishmentName": "Aero SJ",
JS:                 "establishmentNumber": 734,
JS:                 "establishmentId": 438
JS:             },
JS:             {
JS:                 "establishmentName": "Ae SP",
JS:                 "establishmentNumber": 734,
JS:                 "establishmentId": 440
JS:             },
JS:             {
JS:                 "establishmentName": "AerT",
JS:                 "establishmentNumber": 734,
JS:                 "establishmentId": 1650
JS:             }
JS:         ]
JS:     },
JS:     }
JS: ]

How use list view with this array?


#2

I don’t think you can use multiple array, you have to contact them into one and set as a data source to list view.


#3

I need show the key in listview, how I can do this?


#4

Here is a rough example how you could do that.


#5

Thanks for your solution!! Gave me great ideas!