1. #1
    Sencha User
    Join Date
    Apr 2012
    Location
    Chennai
    Posts
    7
    Vote Rating
    0
    spriya is on a distinguished road

      0  

    Default Problem in display data in browser

    Problem in display data in browser


    Hi,
    Am new sencha touch i have to load a data in list from webservice .The data should be display in desginer but it is not display in browser.

    Please can anyone help me............

    Thanks.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,100
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Did you load the store by calling store.load or setting the autoLoad property?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Location
    Chennai
    Posts
    7
    Vote Rating
    0
    spriya is on a distinguished road

      0  

    Default


    Hi,

    Thanks for reply.Yes autoLoad property is set to true only.Anyhow it is not working.

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,100
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Are any errors thrown on the console? Is it making a request?

    Can we see your Store configuration?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Location
    Chennai
    Posts
    7
    Vote Rating
    0
    spriya is on a distinguished road

      0  

    Default


    This is the code which i am handling with.

    Store.js

    Ext.define('MyApp.store.MyStore', {
    extend: 'Ext.data.Store',
    config: {
    autoLoad: true,
    storeId: 'MyStore',
    fields: [
    {
    name: 'CountryId'
    },
    {
    name: 'CountryName'
    }
    ],
    proxy: {
    type: 'ajax',
    url: 'http://192.168.0.60:4466/RestDataService/Country',
    reader: {
    type: 'xml',
    record: 'CountryDTO'
    }
    },
    });


    List.js


    Ext.define('MyApp.view.MyList', {
    extend: 'Ext.dataview.List',
    config: {
    height: 235,
    ui: 'round',
    width: 263,
    store: 'MyStore',
    itemTpl: [
    '<div class="MyStore">{CountryId}<br>{CountryName}</div>'
    ]
    }
    });

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Location
    Coimbatore
    Posts
    103
    Vote Rating
    -1
    venkatesh.R will become famous soon enough

      0  

    Default Display data in browser

    Display data in browser


    @spriya

    Please refer this thread , adding model config may resolve this issue.

    http://www.sencha.com/forum/showthread.php?202871-List-data-is-not-viewable-in-browser-and-android-simulator.


    T
    hanks.

Thread Participants: 2