Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 更新的记录不';t match Store.sync()_Extjs_Sencha Touch - Fatal编程技术网

Extjs 更新的记录不';t match Store.sync()

Extjs 更新的记录不';t match Store.sync(),extjs,sencha-touch,Extjs,Sencha Touch,我在更新我的商店时遇到问题 Ext.define("ManageShows.model.Show", { extend: "Ext.data.Model", config: { idProperty: 'id', fields: [ { name: 'id' , type: 'int'}, { name: 'name', type: 'string' } ], validations: [ { type: 'pres

我在更新我的商店时遇到问题

Ext.define("ManageShows.model.Show", {
extend: "Ext.data.Model",
config: {
    idProperty: 'id',
    fields: [
        { name: 'id' , type: 'int'},
        { name: 'name', type: 'string' }
    ],
    validations: [
        { type: 'presence', field: 'name', message: 'Please enter a name for this show.'}
    ]
}
});
当我尝试sync()时,会出现此错误

[WARN][Ext.data.Operation#process] Unable to match the updated record that came back from the server. 
然后,保存数据的列表包含列表中第一个元素的重复条目。但是,如果我刷新页面,我的列表将正确显示更新的术语

我不知道哪部分记录不匹配。我能看到的唯一不同之处是Store.id=“ext-record-4”似乎是自动生成的,我没有将此值保存在数据库中,而是Store.data.id={id from database}

如何找到不匹配的内容

编辑:
重要的一点是,我一行出现7次错误,我有8个条目。如果我更新了第一个条目,那么更改会起作用并相应显示

在一次sync()调用后,我停止servlet返回json数据。这是不需要的,因为sencha touch会在本地自动更新数据