2014-09-01 85 views
0

我有一個正常的商店網格。一切工作正常,但只要我用sencha cmd部署我的項目我得到錯誤:無法讀取未定義的屬性'isBufferedStore'。Sencha Cmd部署後 - 無法讀取未定義的屬性'isBufferedStore'

我知道,當商店找不到時會發生此錯誤。

商店:

Ext.define('Desktop.irregularPresence.store.irregularPresenceStore', {  
extend: 'Ext.data.Store', 
id: 'irregularPresenceStore', 
alias: 'widget.irregularPresenceStore', 


requires: [ 
    'Desktop.irregularPresence.model.irregularPresenceModel', 
    'Ext.data.proxy.Memory', 
    'Ext.data.reader.Array' 
], 




model: 'Desktop.irregularPresence.model.irregularPresenceModel', 
autoLoad:true, 
//pageSize: 10, 
proxy: 
{ 
    type:'ajax', 
    enablePaging: true, 
    url:'php/json.php', 
    headers: { 'Content-Type': 'application/json' }, 
    extraParams:{ 
     data : JSON.stringify({ 
      module : "irregularPresence", 
      action : "load", 
      jsonObject : null}) 
    }, 
    reader:{ 
     type:'json', 
     rootProperty: 'Anfang' 
    } 
}, 


sorters: [{ 
     property : 'lastName', 
     direction:'DESC' 
}], 

});

模型:

Ext.define('Desktop.irregularPresence.model.irregularPresenceModel', { extend: 'Ext.data.Model', 
alias: 'widget.irregularPresenceModel', 


id: 'irregularPresenceModel', 
fields: 
[ 
    {name:'id', type:'int'}, 
    {name:'fullName', type:'string'}, 
    {name:'type', type:'string'}, 
    {name:'datefrom', type:'string'}, 
    {name:'dateto', type:'string'} 

] 

});

視圖:Ext.define( 'Desktop.irregularPresence.view.irregularPresenceList',{延伸: 'Ext.grid.Panel', 別名: 'widget.irregularPresenceList', ID: 'irregularPresenceList',

requires: [ 
    'Desktop.irregularPresence.store.irregularPresenceStore' 
], 


xtype: 'array-grid', 
store: 'Desktop.irregularPresence.store.irregularPresenceStore', 


collapsible: false, 


listeners : { 
    celldblclick: function(table, td, cellIndex, record, tr, rowIndex, e, eOpts) { 
     this.fireEvent('LoadCellDblClick', rowIndex); 
    } 
}, 






initComponent: function() { 
    var me = this; 


    me.columns = [ 
     { 
      text  : 'Name', 
      dataIndex: 'fullName', 
      flex: 1 
     }, 
     { 
      text  : 'Typ', 
      dataIndex: 'type', 
      flex: 1 
     }, 
     { 
      xtype: 'datecolumn', 
      text  : 'Datum von', 
      dataIndex: 'datefrom', 
      format: 'd.m.Y', 
      flex: 1 
     }, 
     { 
      xtype: 'datecolumn', 
      text  : 'Datum bis', 
      dataIndex: 'dateto', 
      format: 'd.m.Y', 
      flex: 1 
     }, 
     { 
       xtype: 'actioncolumn', 
       width: 80, 
       menuDisabled: true, 
       items: [ 

        { 
         icon: 'resources/images/tabs.gif', 
         tooltip: 'Abweichende Präsenz anzeigen', 


         handler: function(view, rowIndex, colIndex, item, e) { 
          this.fireEvent('viewIrregPresence', rowIndex); 
         } 

        },{ 
         icon: 'resources/images/edit.png', 
         tooltip: 'Abweichende Präsenz bearbeiten', 


         handler: function(view, rowIndex, colIndex, item, e) { 
          this.fireEvent('editIrregPresence', rowIndex); 
         } 
        }, 
        { 
         icon: 'resources/images/delete.gif', 
         tooltip: 'Abweichende Präsenz löschen', 


         handler: function(view, rowIndex, colIndex, item, e) { 
          this.fireEvent('deleteIrregPresence', rowIndex); 
         } 
        } 
       ] 
      } 
    ]; 


    me.tbar = [{ 
       xtype: 'button', 
       id:'irregPresence_btn_add', 
       text:'Abweichende Präsenz hinzufügen', 
       tooltip:'Abwesenheit oder spezial Anwesenheit hinzufügen', 
       iconCls:'add', 
        handler:function(view, e){ 
         this.fireEvent('AddirregularPresence', view, e); 
        } 
    }]; 


    me.callParent(); 
} 

});

app.js:

... 控制器:[ 'Desktop.irregularPresence.controller.irregularPresenceController' ],

stores: [ 
    'Desktop.irregularPresence.store.irregularPresenceStore' 
], 

... });

+0

在Desktop.irregularPresence.store.irregularPresenceStore的已編譯app.js中搜索的結果是什麼? – Alexander 2014-09-02 07:38:28

回答

1

我把商店直接搬到了模型上,現在正在工作。

相關問題