Results 1 to 2 of 2

Thread: How to get data from list in sencha touch2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Bangalore
    Posts
    95
    Vote Rating
    1
      0  

    Default 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
    1
      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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •