Extjs 想要在rallycombobox中显示所有portfolioitem/program,但它没有';不显示

Extjs 想要在rallycombobox中显示所有portfolioitem/program,但它没有';不显示,extjs,extjs4,rally,Extjs,Extjs4,Rally,想要在rallycombobox中显示所有portfolioitem/程序,但它不会显示任何 this.down('#filter_box').add({ xtype: 'rallyfieldvaluecombobox', model: 'portfolioitem/program', field: 'Name',

想要在rallycombobox中显示所有portfolioitem/程序,但它不会显示任何

                this.down('#filter_box').add({
                    xtype: 'rallyfieldvaluecombobox',
                    model: 'portfolioitem/program',
                    field: 'Name',
                    //margin: '0 0 5 0',
                    autoLoad: true,
                    fieldLabel: 'Program',
                    itemId: 'program',
                    multiple: true,
                    stateful: true,
                    stateId: 'chart-state1',
                    stateEvents: ['change', 'select'],                      
                    displayField: 'Name',
                    valueField: 'FormattedID',
                    listeners:{
                        ready: function(combobox){
                            this.programs = this.down('#program').getValue();
                            //this.validateReady();                             
                        },
                        select: function(selectedRecord) {
用于显示字段的允许值。如果要使用PortfolioItems填充组合框,请使用:

Ext.define('CustomApp', {
    extend: 'Rally.app.App',
    componentCls: 'app',
    items:{ html:'<a href="https://help.rallydev.com/apps/2.0/doc/">App SDK 2.0 Docs</a>'},
    launch: function() {
        this.add({
            xtype: 'rallycombobox',
            itemId: 'features',
        storeConfig: {
        model: 'PortfolioItem/Feature',
        fetch: ['FormattedID','Name','Release', 'UserStories'],
        limit: Infinity,
        autoLoad: true
        },
        fieldLabel: 'select Feature',
        listeners:{
                ready: function(combobox){
            this._onFeatureSelected(combobox.getRecord());

        },
                select: function(combobox){
            this._onFeatureSelected(combobox.getRecord());        
                },
                scope: this
            }
        });
    },
    _onFeatureSelected:function(record){
        console.log(record.get("Name"), record.get("FormattedID"));
    }
});
Ext.define('CustomApp'{
扩展:“Rally.app.app”,
组件CLS:“应用程序”,
项目:{html:'},
启动:函数(){
这个。添加({
xtype:“rallycombobox”,
itemId:'功能',
storeConfig:{
型号:“PortfolioItem/Feature”,
获取:['FormattedID','Name','Release','UserStories'],
极限:无限,
自动加载:正确
},
fieldLabel:“选择功能”,
听众:{
就绪:函数(组合框){
此.u onFeatureSelected(combobox.getRecord());
},
选择:函数(组合框){
此.u onFeatureSelected(combobox.getRecord());
},
范围:本
}
});
},
_onFeatureSelected:功能(记录){
log(record.get(“Name”)、record.get(“FormattedID”);
}
});

非常感谢nick,这让代码正常工作了……还有一个疑问……我可以对每一个都使用复选框,这样我就可以知道我之前选择了哪些功能,如果我选择了multiple=true