SmartClient--this.fields is undefind问题
来源:互联网 发布:内网端口转发工具 编辑:程序博客网 时间:2024/06/03 22:58
遇到this.fields is undefind问题,纠结一下午。在晚上的时候终于找到原因所在
原数据源是这样写的
RestDataSource.create({
ID:"demoData",
dataFormat:"json",
fields: [
{name: "id",title:"id"},
...
{name:"button",title:"操作"}
],
fetchDataURL:"demo_fetch.do"
});
原listGrid
ListGrid.create({
ID:"tab_dbsq_list",
autoDraw: false,
selectionAppearance:"checkbox",
autoFetchData:false,
showRowNumbers:true,
dataPageSize:20,
showRecordComponents: true,
showRecordComponentsByCell: true,
dataSource: NeedPackageVisa,
warnOnRemoval:true,
warnOnRemovalMessage:"确定删除此条记录吗?",
createRecordComponent:function(record,colNum) {
var fieldName = this.getFieldName(colNum);
if (fieldName == "Button") {
var button = isc.IButton.create({
width: 30,
title: "",
icon: "[SKIN]/actions/remove.png",
click : function () {
//to do
}
});
return button;
}
}
});
list改为如下形式,并将dataSource中的fields删除,ok,问题解决。
ListGrid.create({
ID:"tab_dbsq_list",
autoDraw: false,
selectionAppearance:"checkbox",
autoFetchData:false,
showRowNumbers:true,
dataPageSize:20,
showRecordComponents: true,
showRecordComponentsByCell: true,
dataSource: NeedPackageVisa,
warnOnRemoval:true,
warnOnRemovalMessage:"确定删除此条记录吗?",
fields: [
{name: "id",title:"id"},
...
{name:"button",title:"操作"}
],
createRecordComponent:function(record,colNum) {
var fieldName = this.getFieldName(colNum);
if (fieldName == "Button") {
var button = isc.IButton.create({
width: 30,
title: "",
icon: "[SKIN]/actions/remove.png",
click : function () {
// to do
}
});
return button;
}
}
});
- SmartClient--this.fields is undefind问题
- this.fields.get(c) is undefined
- 急!!!!!!!!!!Ext 2.0 中定义ProgressBar出错 报 this.textEl is undefind
- 错误中学习--TypeError: this.ds.fields.get(...) is undefined
- React native 'React.CreatClass is undefind'
- ExtJs中出现this.ds.fields.get(i) is undefined错误解决方法
- Mongo:You cannot currently mix including and excluding fields. Contact us if this is an issue.
- ButterKnife If this view is optional add '@Nullable' (fields) or '@Optional' (methods) annotation
- If this view is optional add '@Nullable' (fields) or '@Optional' (methods) ...
- SmartClient
- SmartClient
- This application is currently offline.问题
- Can't parse message of type "..." because it is missing required fields: eType问题的解决办法
- web方式启动smartclient遇到的问题
- java Error:"The method xxx is undefind for the type of xxx"
- 已解决往Ext.grid.ColumnModel中附加一列,出现奇怪错误this.ds.fields.get(C) is undefined(out of range)
- because it is missing required fields:
- This system is not registered with RHN问题的解决
- 基于单片机的多级菜单实现方法改进
- java中的多线程
- VOID和PVOID
- 关于eclipse中android 包引不进去问题,(开发中新下其它版本的SDK问题)
- 关于我,关于本博客
- SmartClient--this.fields is undefind问题
- jsp页面循环集合操作
- UVA 10132 File Fragmentation
- Android系统联系人全特效实现(上),分组导航和挤压动画
- Android中自定义属性(attrs.xml,TypedArray)的使用
- HttpClient 学习整理
- 安全完美终止线程大全,各种各样情况
- 多线程通信——事件
- upnp协议编程一