Rally-Error-HyderateModel不是一个函数?

Rally-Error-HyderateModel不是一个函数?,rally,Rally,问:我是Rally应用程序开发的新手,尝试在选定的应用程序填充网格时构建一个带有发布下拉列表的简单应用程序 但是,当我选择该值时,我会根据此错误得到以下错误 1。这是什么意思未捕获类型错误:this.store.hydrateModel不是构造函数.initComponent中的函数,如何解决此问题? ==================================================================== App.js?_dc=0.59785698231437:4

问:我是Rally应用程序开发的新手,尝试在选定的应用程序填充网格时构建一个带有发布下拉列表的简单应用程序

但是,当我选择该值时,我会根据此错误得到以下错误

1。这是什么意思未捕获类型错误:this.store.hydrateModel不是构造函数.initComponent中的函数,如何解决此问题?

====================================================================

App.js?_dc=0.59785698231437:43 Data:  [constructor]
    08:43:48.080 sdk-debug.js:185210 Uncaught TypeError: this.store.hydrateModel is not a function
        at constructor.initComponent (sdk-debug.js:185210)
        at constructor (sdk-debug.js:30211)
        at constructor.callParent (sdk-debug.js:4469)
        at constructor [as _componentConstructor] (sdk-debug.js:34291)
        at constructor.callParent (sdk-debug.js:4469)
        at constructor (sdk-debug.js:144823)
        at constructor.callParent (sdk-debug.js:4469)
        at constructor (sdk-debug.js:185132)
        at new constructor (sdk-debug.js:5100)
        at eval (eval at getInstantiator (sdk-debug.js:5720), <anonymous>:3:8)
            initComponent @ sdk-debug.js:185210
            constructor @ sdk-debug.js:30211
             callParent @ sdk-debug.js:4469
            constructor @ sdk-debug.js:34291
            callParent @ sdk-debug.js:4469
    constructor @ sdk-debug.js:144823
    callParent @ sdk-debug.js:4469
    constructor @ sdk-debug.js:185132
    constructor @ sdk-debug.js:5100
    (anonymous) @ VM20:3
    instantiate @ sdk-debug.js:5692
    (anonymous) @ sdk-debug.js:2303
    _loadData @ App.js?_dc=0.59785698231437:45
    fire @ sdk-debug.js:10046
    continueFireEvent @ sdk-debug.js:11447
    fireEventArgs @ sdk-debug.js:11425
    prototype.fireEventArgs @ sdk-debug.js:42297
    object.(anonymous function) @ sdk-debug.js:195692
    fireEvent @ sdk-debug.js:11411
    onListSelectionChange @ sdk-debug.js:149617
    object.(anonymous function) @ sdk-debug.js:195692
    fire @ sdk-debug.js:10046
    continueFireEvent @ sdk-debug.js:11447
    fireEventArgs @ sdk-debug.js:11425
    fireEvent @ sdk-debug.js:11411
    maybeFireSelectionChange @ sdk-debug.js:95171
    doSingleSelect @ sdk-debug.js:95145
    doSelect @ sdk-debug.js:94983
    selectWithEvent @ sdk-debug.js:94717
    onItemClick @ sdk-debug.js:95543
    fire @ sdk-debug.js:10046
    continueFireEvent @ sdk-debug.js:11447
    fireEventArgs @ sdk-debug.js:11425
    prototype.fireEventArgs @ sdk-debug.js:42297
    fireEvent @ sdk-debug.js:11411
    processUIEvent @ sdk-debug.js:96924
    handleEvent @ sdk-debug.js:96850
    (anonymous) @ VM60:7
    wrap @ sdk-debug.js:10800
==========================================================================

你遇到的问题是myStore不是商店,而是发布组合框

我想查看将应用程序范围限定到时间框的简易按钮:

下面是另一个示例,展示了如何基于组合框过滤器加载/更新网格:

enter code here


  Ext.define('CustomApp', {
            extend: 'Rally.app.App',
            componentCls: 'app',
            //specify the layout over here 
            defaults: { margin:10 },
           // layout: 'border', 

            items: [
                     { xtype:'container', itemId:'drop-downContainer',layout:'hbox' },   
                     { xtype:'container', itemId:'gridContainer',layout:'hbox' } 
                   ],

            //var userStories: undefined;

            launch: function() {
         enter code here       console.log('Entering the launch function');
                this._loadUserStores();
            },

            _loadUserStores: function()
                {   console.log("Entering the Load User Stories...");
                    var releaseComboBox = Ext.create('Rally.ui.combobox.ReleaseComboBox',{
                                            itemId: 'releaseDropDown',
                                            listeners: {
                                                    load: function(data,records,success){
                                                            console.log("Load is complete");

                                                        },
                                                    select: this._loadData,
                                                    scope: this
                                                            }

                                              }); 

                   this.down('#drop-downContainer').add(releaseComboBox);


                   },

            _loadData: function(myStore,data,success)
             {   console.log("Entering the onLoad Data...");
                 console.log("Store --",myStore);
                 console.log("Data: ",data);   

                  var datagrid= Ext.create('Rally.ui.grid.Grid',{
                                       store:  myStore,
                                       columnCfgs: ['Name', 'ReleaseStartDate"', 'ReleaseDate', 'ObjectID', 'State', 'PlannedVelocity']
                                        });

                   console.log("DataGrid is complete...");                     
                  //this.down('#gridContainer').add(datagrid);   




                 }   




        });