Results 1 to 2 of 2

Thread: Problem loading data with Ext.ux.AspWebServiceProxy

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Moscow
    Posts
    137

    Default Problem loading data with Ext.ux.AspWebServiceProxy

    Hello. I'm trying to load all the data to grid with Asp.Net WebServices using Ext.ux.AspWebServiceProxy. Everything work good, params sent to server, got data, returned and then I see this error in FireBug :

    this.indexOf is not a function
    remove()(Object Root=[23] totalCount=23)Ext.js (line 1044)
    onComplete(Object _webRequest=Object _resultObject=Object, Object)ScriptRe...fd53f54f4 (line 5492)
    (?)()(Object _webRequest=Object _resultObject=Object, Object)ScriptRe...fd53f54f4 (line 2399)
    Sys$Net$WebRequest$completed(Object)ScriptRe...fd53f54f4 (line 5103)
    (?)()()ScriptRe...fd53f54f4 (line 4721)
    [Break on this error] var index = this.indexOf(o);
    store configuration is as follows :

    Code:
    var store = new Ext.data.GroupingStore({proxy:new Ext.ux.AspWebServiceProxy({  
     webServiceProxy:Platform.Service.DataService,
     webServiceProxyMethod:Platform.Service.DataService.Select
    }),
    baseParams:[{action:'GetItems',DataShapeName:'Filter',sRefName:'Filter'}],
    reader: new Ext.data.JsonReader
    (
    {id:'id',root:'Root',totalProperty:'totalCount',fields: [
    {name: 'idCreator', type: 'string'},{name:'idCreator_id',type:'string'},
    {name: 'nUnionType',type:'int'},{name: 'idUpdater', type: 'string'},
    {name:'idUpdater_id',type:'string'},{name: 'id', type: 'string'},{name:'id_id',type:'string'},
    {name: 'nType',type:'int'},{name: 'DeleteTime',type:'date', dateFormat:'d/m/Y'},
    {name: 'idDeleter', type: 'string'},{name:'idDeleter_id',type:'string'},
    {name: 'idLayer', type: 'string'},{name:'idLayer_id',type:'string'},
    {name: 'Status', type: 'string'},{name:'Status_id',type:'string'},
    {name: 'nShowUser',type:'int'},{name: 'tstamp',type: 'string'},
    {name: 'CreationTime',type:'date', dateFormat:'d/m/Y'},
    {name: 'UpdateTime',type:'date', dateFormat:'d/m/Y'},
    {name: 'sDataURL',type: 'string'},{name: 'sCaption',type: 'string'},
    {name: 'nComparison',type:'int'}
    ]})});
    The main problem, that it falls somewhere in ext-base.js, trying to remove element on 1044 line of code Ext.js (cause its scope somehow is window, not an array which it expects) ... Can someone help?
    Last edited by mystix; 17 Feb 2009 at 9:40 AM. Reason: moved to 2.x Help from 2.x Ux and Plugins

  2. #2
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966

    Lightbulb

    You might get better traction on this if you posted it directly to the ux's thread in the Extensions/Plugins forum.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


Posting Permissions

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