PDA

View Full Version : Store is undefine after sdk



Anthony.Hall
18 Jun 2012, 5:14 AM
my mvc applications works fine. However when i run the sdk. I get store is undefined.

Below the store is defined as "Cutters" I've also tried the full name namespace "Mis.store.Cutters"

I've uploaded the whole file. 36321

here is my view


Ext.define('Mis.view.Cutter', { extend:'Ext.panel.Panel',
alias:'widget.Cutter',
items:[
{
border:0,
width:950,
layout:{
align:'stretch',
type:'hbox'
},
items:[
{
xtype:'gridpanel',
title:'',
id:'cutterGrid',
name:'cutterGrid',
layout:{
align:'stretch',
type:'hbox'
},
store:'Cutters',
columns:[
{
xtype:'gridcolumn',
dataIndex:'CutterNumber',
text:'Cutter',
flex:1,
sortable: true
}
],
bbar:Ext.create('Ext.PagingToolbar', {
id: 'cutterPagination',
name: 'cutterPagination',
store:'Cutters',
displayInfo:true,
displayMsg:'Displaying records {0} - {1} of {2}  ',
emptyMsg:"No records to display "
}
)


}
]
}


],
initComponent:function () {
this.callParent();
}
});

scottmartin
18 Jun 2012, 1:59 PM
Do you have it defined in your controller?

stores : [ 'Cutters' ],

Scott.