1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    2
    Vote Rating
    0
    tariq.oracle.ebs is on a distinguished road

      0  

    Default XmlStore and xml reader is not working

    XmlStore and xml reader is not working


    i am using XmlStore with xml reader when i try to display the data in grid is not showing but data is comming in repsonseText not in responseXml.

    how to assign responseText to responseXml.

    please help!

    Error Object
    Error message: "XML data not found in the response".

    Response Object
    request: Object, requestId: 1, status: 200, statusText: "OK"
    responseText: "<?xml version="1.0" encoding="UTF-8" ?><Orglist><Org><org_id>192</org_id><loc_id>598</loc_id><org_name>Petrol Steel-230448 WH</org_name><org_type></org_type><loc_name>PS-PetrolSteel</loc_name></Org><Orglist>

    //Store
    var store = Ext.create('Ext.data.XmlStore', {
    model: 'OrganizationModel',
    autoLoad: true,
    proxy: {
    type: 'ajax',
    api : {
    read : '../route.aspx'
    },
    reader: {
    type: 'xml',
    root : 'Orglist',
    record: 'Org',
    idProperty: 'org_id',
    listeners : {
    exception : function( reader, response, error, eOpts ){
    //console.log(response);
    console.log('Message',error.message);
    //console.log(eOpts);
    }
    }
    }
    }
    });

    //Grid
    Ext.create('Ext.grid.Panel',{
    title : 'Organization Unit List',
    store : store,
    width : 800,
    columns : [
    {text: 'Organization ID' , dataIndex :'org_id',},
    {text: 'Location ID' , dataIndex :'loc_id'},
    {text: 'Organization Name' , dataIndex :'org_name' , flex:1},
    {text: 'Organization Type' , dataIndex :'org_type',flex:1},
    {text: 'Location Name' , dataIndex :'loc_name',flex:1}
    ],
    dockedItems: [{
    xtype: 'toolbar',
    items: [
    {
    text: 'Export Excel',
    handler: function(){
    Ext.Msg.alert('Message','Export Excel Functionality under development');
    }
    }

    ]
    }],
    renderTo: Ext.getBody(),
    });

  2. #2
    Sencha User
    Join Date
    May 2013
    Posts
    2
    Vote Rating
    0
    tariq.oracle.ebs is on a distinguished road

      0  

    Default Problem has been solved

    Problem has been solved


    Problem has been solved.
    before i am getting xml through aspx page. after that i have created web service through .asmx now it's working fine.

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar