この単純なアプリを「Blocked」と「BlockedReason」で拡張したこの例では、何が欠けている可能性がありますか? そのようなデータがあっても、BlockedReason はグリッド上にマニフェストしません。
_queryForStories: function() {
Ext.create('Rally.data.WsapiDataStore', {
model: 'UserStory',
autoLoad: true,
fetch: ['Rank', 'FormattedID', 'Name', 'Blocked', 'BlockedReason'],
filters: [this.down('#iterationComboBox').getQueryFromSelected()],
sorters: [
{
property: 'Rank',
direction: 'ASC'
}
],
listeners: {
load: this._onDataLoaded,
scope: this
}
});
},
_onDataLoaded: function(store, data) {
var records = [], rankIndex = 1;
Ext.Array.each(data, function(record) {
records.push({
Ranking: rankIndex++,
FormattedID: record.get('FormattedID'),
Name: record.get('Name'),
Blocked: record.get('Blocked'),
BlockedReason: record.get('BlockedReason')
});
});
...
if(!this.grid) {
this.grid = this.down('#grid').add({
xtype: 'rallygrid',
store: customStore,
columnCfgs: [
{ text: 'Ranking', dataIndex: 'Ranking' },
{ text: 'ID', dataIndex: 'FormattedID' },
{ text: 'Blocked', dataIndex: 'Blocked' },
{ text: 'BlockedReason', dataIndex: 'BlockedReason', flex: 1 },
{ text: 'Name', dataIndex: 'Name', flex: 1 }
]
});
}