1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    27
    Vote Rating
    0
    chsrinivasgupta is on a distinguished road

      0  

    Default Unanswered: Data from Database is not displaying in Sencha list view

    Unanswered: Data from Database is not displaying in Sencha list view


    hi,

    The below is my code for getting data from sql server to sencha list view thru asp.net web service.
    Web service is returning in format json. But loading symbol is coming data is not coming. Please check the below code and help me out where the error is located. Thanks in advance

    Ext.create('Ext.DataView', {
    fullscreen: true,
    store: {
    autoLoad: true,
    fields: ['empname'],
    proxy: {
    type: 'jsonp',
    url: 'http://localhost/GetEmpNames/service1.asmx',
    reader: {
    type: 'json',
    root: 'results'
    }
    }
    },
    itemTpl: '<p>{empname}</p>'
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    873
    Answers
    3567
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    Any errors? Is the response valid JSONP?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    62
    Vote Rating
    0
    Answers
    3
    kidqn is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    Any errors? Is the response valid JSONP?
    Sorry for my foolish question. How to create server database ?
    I built a web app about shopping by ST2. So I have to built a server database to load and save data. I readed many threads in forum and until now, I know follow solutions:
    1. Sqllite proxy ( Does it support server database?)
    2. Microsoft SQL 2008 and read through aps.net by using models, stores, proxy of sencha touch. Or i will export database to json file for reading.
    3. other
    What is the best solution? Can you suggest it for me? Thank you so much

Thread Participants: 2