Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    27
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      1  

    Default

    Any errors? Is the response valid JSONP?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    80
    Answers
    6
    Vote Rating
    5
      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

Posting Permissions

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