PDA

View Full Version : Getting this error: TypeError: me.model is undefined. Need help



Peter Lu
21 Aug 2012, 6:48 AM
This is my code:

<html>
<head>
<title>Grid Starter</title>
<link rel="stylesheet" type="text/css" href="../../extjs/resources/css/ext-all.css">
<script type="text/javascript" src="../../extjs/ext-all-debug.js"></script>
<script>
Ext.onReady(function(){
Ext.BLANK_IMAGE_URL = 'images/s.gif';
Ext.QuickTips.init();

var store = new Ext.data.Store({
data: [
[1,"84m.jpg","Office Space","Mike Judge","1999-02-19",1,"Work Sucks",19.95,true]
]
});

});
</script>
</head>
<body>
</body>
</html>

I always get this error:

TypeError: me.model is undefined

me.setProxy(me.proxy || me.model.getProxy());

Thanks a lot for your help.

redraid
21 Aug 2012, 7:06 AM
Read this guide http://docs.sencha.com/ext-js/4-1/#!/guide/data

Peter Lu
23 Aug 2012, 11:01 AM
Hi redraid,

The code is from a book called "Learning Ext JS". I think the code does not work in ExtJS 4 environment. I looked the link your provided and it works. Thank you so much.

Peter