0

Hi i am new to sencha touch 2. i am consuming web service. it is returning data in list oject. so how to iterate the data from list

here is output:

request: Array[2]
0: Object
Address: "1 Bangalore"
Name: "Vinay"
__type: "Customer:#WcfService1"
__proto__: Object
1: Object
Address: "1 Kerala"
Name: "Sujay"
__type: "Customer:#WcfService1"
Ramesh Lamani
  • 1,117
  • 3
  • 25
  • 54

1 Answers1

1

You could just iterate the results.

for (person in request) {
   doSomethingWithPerson(person);
}

your person would be just an object with the .Name and .Address properties.

Martin
  • 577
  • 4
  • 9