1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Bangalore
    Posts
    95
    Vote Rating
    1
    Rameshlamani is on a distinguished road

      0  

    Default How to get data from list in sencha touch2

    How to get data from list in sencha touch2


    Hi i am new to sencha touch2. after consuming web service request object holding list data in the format as below. how to iterate this list. please help me anyone.


    Here is my output:

    request: Array[2]
    0: Object
    <CompanyId>k__BackingField: 0
    <CreatedBy>k__BackingField: null
    <LongDescription>k__BackingField: null
    <MainImageUrl>k__BackingField: "images/image1.jpg"
    <ModifiedBy>k__BackingField: null
    1: Object
    <CompanyId>k__BackingField: 1
    <CreatedBy>k__BackingField: null
    <LongDescription>k__BackingField: null
    <MainImageUrl>k__BackingField: "images/image2.jpg"
    <ModifiedBy>k__BackingField: null

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    17
    Vote Rating
    0
    jmendez88 is on a distinguished road

      0  

    Default


    If you have an array, you probably can use "Ext.each" to iterate.

    http://docs.sencha.com/touch/2-0/#!/api/Ext-method-each

Thread Participants: 1

Tags for this Thread