vehicle.js
var BtnEdit = Ext.getCmp('BtnEdit');
BtnEdit.on('click', function(){
var grid = Ext.getCmp('mygridpanel')
if (grid.getSelectionModel().hasSelection()) {
var row = grid.getSelectionModel().getSelection()[0];
console.log(row.get('Plat_No'));
};
var win = Ext.create('MyApp.view.Edit2');
win.show();
});
design.js
//==========Update Vehicle==================
Ext.define('MyApp.view.Edit2', {
extend: 'Ext.window.Window',
height:187,
id:'ChangePasswordWin',
width:500,
title:'Edit',
initComponent:function()
{var me=this;
Ext.applyIf(me,
{
items:[{
xtype:'container',
height:180,
width:505,
layout:{align:'center',type:'hbox'},
items:[{
xtype:'container',
flex:1,
margins:'',
height:140,
padding:'10 10 10 10',
width:385,
layout:{type:'vbox'},
items:[{
xtype:'form',
flex:1,
margins:'10 10 10 10',
height:137,
width:345,
bodyPadding:10,
header:false,
title:'My Form',
items:[{
xtype:'textfield',
disabled:true,
padding:'0 0 10 0',
width:310,
fieldLabel:'Vehicle ID',
labelWidth:150
},{
xtype:'textfield',
padding:'0 0 10 0',
width:310,
fieldLabel:'Plat Number',
labelWidth:150
}]
}
]
}]
}],
dockedItems:[{
xtype:'toolbar',
dock:'top',
items:[{
xtype:'button',
cls:'',
width:53,
icon:'',
iconCls:'save',
text:'Save'
}]
}
]
});
me.callParent(arguments);
}
});
index.html
<script type="text/javascript" src="vehicle.js"></script>
<script type="text/javascript" src="../resources/js/design.js"></script>
this is the firebug log
GET http://localhost/BusTicket/vehicle/MyApp/view/Edit2.js?_dc=1386481666308
404 Object Not Found
0ms
ext-all.js (line 27)
TypeError: c is not a constructor
...f(p==k){if(a+E+l.width>(O>=0?u.x+u.width-b:b-u.x)){p=M}}else{if(a+E>l.width){p:k...
why am I encountering this issue?