Extjs editorgrid批量上传数据


var storeValue = Ext.getCmp("personRegistrationGrid").getStore();   
           //var m = storeValue.getModifiedRecords();   
         var jsonarray=[];   
           //Ext.each(m,function(item){jsonArray.push(item.data);});   
         storeValue.each(function(item){   
           //jsonarray.push(item.get("documentsid")+","+item.get("linecode"));   
         jsonarray.push(item.data);   
        });   
        var result = Ext.encode(jsonarray);   
          
        /*var lineCodeForm = Ext.getCmp("lineCodeForm");  
        var count = storeValue.getCount();  
        var _rd = 0;  
        lineCodeForm.form.loadRecord(storeValue.getAt(0));*/   
          
          
          
        Ext.getCmp("lineCodeForm").form.submit({   
        url:"http://139.28.96.10:8080/scan/secure/taxcase",   
method:"POST",   
params:{   
        result:result   
        },   
waitTitle:"提交数据",   
waitMsg:"正在提交,请稍后",   
success:function(form,action) {   
        //alert(action.result.success);   
Ext.Msg.alert("提示信息","提交成功");   
//Ext.getCmp("savedGrid").getStore().reload();   
//Ext.getCmp("savedGrid").getView().refresh();     


你可能感兴趣的:(function,header,action,ExtJs,Constructor,autoload)