【发布时间】:2015-10-22 15:57:06
【问题描述】:
我们正在使用 ExtJS 6.0.0 GPL
The situation includes a Grid which when a row is selected and the edit button is clicked a form is created.
表单的字段绑定到动态视图模型。
此视图模型有一个链接到对应于该行的模型。
不确定上述是否有帮助,但我们真的无法理解以下异常。
未捕获的错误:为 5@UserExt.Error @ ext-all-rtl-debug.js?_dc=1445528508045:2312Ext.apply.raise @ ext-all-rtl-debug.js?_dc=1445528508045 返回了无效的记录 ID :2371Ext.raise @ ext-all-rtl-debug.js?_dc=1445528508045:2450options.recordCreator @ ext-all-rtl-debug.js?_dc=1445528508045:80876Ext.define.extractRecord @ ext-all-rtl-debug .js?_dc=1445528508045:82934Ext.define.extractData @ ext-all-rtl-debug.js?_dc=1445528508045:82890Ext.Base.Base.addMembers.callParent @ ext-all-rtl-debug.js?_dc=1445528508045 :11714Ext.define.extractData@ext-all-rtl-debug.js?_dc=1445528508045:86691Ext.define.readRecords@ext-all-rtl-debug.js?_dc=1445528508045:82834Ext.Base.Base.addMembers.callParent @ ext-all-rtl-debug.js?_dc=1445528508045:11714Ext.define.readRecords @ ext-all-rtl-debug.js?_dc=1445528508045:86634Ext.define.read @ ext-all-rtl-debug.js ?_dc=1445528508045:82749Ext.define.processResponse@ext-all-rtl-debug.js?_dc=1445528508045:85771(匿名函数)@ext-all-rtl-debug.js?_dc=14455285080 45:86367Ext.apply.callback @ ext-all-rtl-debug.js?_dc=1445528508045:8174Ext.define.onComplete @ ext-all-rtl-debug.js?_dc=1445528508045:24691Ext.define.onStateChange @ ext- all-rtl-debug.js?_dc=1445528508045:24631(匿名函数)@ext-all-rtl-debug.js?_dc=1445528508045:6404
结果是出现了表单,但字段未填充数据,如果用户再尝试一次,则整个应用程序崩溃。
欢迎提出任何想法!
【问题讨论】:
-
你能发布模型吗?您是在使用自定义标识符还是在模型上配置“特殊”id 字段?