1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    15
    Vote Rating
    0
    ac360 is on a distinguished road

      0  

    Default Can't Get a JSON item to display...

    Can't Get a JSON item to display...


    Hi there,

    I'm trying to get the thumbnail url to display in my list. But I can't figure out how to enter it in to the "mapping" field of my model?

    Update: The thumbnails appear to show up occassionally if I just use 'thumbnail' in the mapping. But on refresh, they show up as broken image links again.

    http://theojai.net/?json=get_recent_posts


    My Model:

    Code:
    Ext.define('MyApp.model.Tweet', {    extend: 'Ext.data.Model',
    
    
        config: {
            fields: [
                {
                    name: 'title',
                    mapping: 'title'
                },
                {
                    name: 'excerpt',
                    mapping: 'excerpt'
                },
                {
                    name: 'thumbnail',
                    mapping: 'thumbnail.url'
                }
            ]
        }
    });

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,912
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      1  

    Default


    Is the store populated each time? What are you trying to load this into? You have not provided very much detail at all.

    Scott.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    15
    Vote Rating
    0
    ac360 is on a distinguished road

      0  

    Default Further Details

    Further Details


    This issue is resolved. I simply used "thumbnail" in place of "thumbnail.url" above.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi