1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    17
    Vote Rating
    0
    sachinrathore is on a distinguished road

      0  

    Default Unanswered: How to load data in grid using webservice in sencha touch 2

    Unanswered: How to load data in grid using webservice in sencha touch 2


    Hi all,
    I am unable to load data in grid using webservice .

    Below is my store:


    Ext.define('NotesApp.store.Grid', {
    extend : 'Ext.data.Store',


    config: {
    model: "NotesApp.model.Grid",


    requires: [
    'Ext.data.proxy.JsonP',
    "Ext.data.Model"
    ],


    proxy: {
    type: 'jsonp',

    url:'http://10.4.3.199/SenchaTest/Default.aspx',
    startParam: '',
    pageParam: '',
    limitParam: '',


    extraParams: {
    Fn:'GetdNot',
    Uid: '3',
    Dn::'data',
    Fdt: '10-08-12'



    },
    reader: {
    rootProperty: 'notification.notf'
    }


    },
    grouper: {
    sortProperty: "dateCreated",
    direction: "ASCE",
    groupFn: function (record) {


    if (record && record.data.dateCreated) {
    return record.data.dateCreated.toDateString();
    } else {
    return '';
    }
    }
    },

    autoLoad:true
    }
    });

    Below is my model:

    Ext.define('NotesApp.model.Grid', {
    extend : 'Ext.data.Model',


    config : {
    fields : [
    'Uid',
    'Ntf',
    'RcpntID',
    'ntfDt'
    ]
    }
    });

    Below is my controller:

    onGridButtonCommand: function () {


    var gridStore = Ext.getStore('Grid');

    gridStore.getProxy().setExtraParam('Uid',3);
    gridStore.getProxy().setExtraParam('Dn',"Teste");
    gridStore.getProxy().setExtraParam('Fdt',"2012-08-07");




    console.log(" Web Grid store");
    gridStore.load();

    }

    Please reply me..........

    Thanks
    Sachin Rathore

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,000
    Answers
    666
    Vote Rating
    456
    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

      0  

    Default


    Move to Q/A forums.

    Scott.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    17
    Vote Rating
    0
    sachinrathore is on a distinguished road

      0  

    Default How to load data in grid using webservice in sencha touch

    How to load data in grid using webservice in sencha touch


    Thanks scott...............

Thread Participants: 1