代码改变世界

this.ds is undefined

2012-04-13 15:06  java线程例子  阅读(187)  评论(0编辑  收藏  举报
	//fields end
    	InpatientViewPanel.superclass.constructor.call(this,{
    		region:"center",
    		height:400,
    		title:"医院住院病人信息",
    		viewConfig: {
    		        forceFit: true
    		},
    		//store:new Ext.data.Store({
    		//	fields:this.fields,
    		//	autoLoad:false,
    	//	//	url:"test.action"
    	//	}),
    		colModel:this.columnModel  
    	});

在之前只是想写一个页面暂时不写后台,但是这个时候出现一个错误this.ds is undefined,布局也是乱的,

后来才发现需要写一个store(注意上面注释的是在报错之前没有写) ,之后加上store后就OK了,随便写一个地址,autoLoad为false就好 了,