1

ポートフォリオ アイテムに c_TrafficLightCost などのカスタム フィールドがいくつかあります。しかし、フェッチで渡してグリッドを作成すると、カスタム フィールドの値を持つ列が作成されません。

これが私のコードです:

Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',


launch: function() {

  console.log('Our First App woot!');
  this._loadData();
},

// Get data from Rally
_loadData: function() {

  var myStore = Ext.create('Rally.data.wsapi.Store', {
      model: 'portfolioitem/deliverable',
      autoLoad: true,          
      listeners: {
          load: function(myStore, myData, success) {
            console.log('got data!', myStore, myData, success);
                            this._loadGrid(myStore);
          },
          scope: this
      },


      fetch: ['FormattedID', 'Name', 'c_TrafficLightCost' ]

  });


},

// Create and Show a Grid of given stories
_loadGrid: function(myStoryStore) {

  var myGrid = Ext.create('Rally.ui.grid.Grid', {
    store: myStoryStore,
    columnCfgs: [
      'FormattedID', 'Name', 'c_TrafficLightCost' 
    ]
  });

  this.add(myGrid);
  console.log('what is this?', this);
  console.log(this.c_TrafficLightCost);  
}

});

私が欲しいのは、信号機がグリッドの列になることです

誰でも私を助けることができますか?

ありがとう。

よろしくマーティン

4

1 に答える 1

0

c_カスタム フィールド名の前を削除します。それができるかどうか試してみTrafficLightCostてください。この git ハブ リポジトリに投稿されたコードc_は、フィールド名の先頭に が追加されている場合、カスタム フィールド (列が空) の値を表示しないことを確認しました。これは欠陥だと思います。

于 2014-02-07T20:49:13.383 に答える