Ext.BLANK_IMAGE_URL = '../../TruckMng/Content/Images/s.gif'; var panelEdit = null; Ext.onReady(function () { Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'side'; panelEdit = Ext.create('Shipping.MsOp_SuperVision_TruckEdit', { id:'MsOp_SuperVision_TruckEdit', layout: 'border', region: 'center' }); var view = new Ext.Viewport({ layout: 'border', renderTo: 'viewport', border: false, items: [ panelEdit ] }); }); function getSaved() { return panelEdit.getIsModify(); }