0
看來即將到來的更新類型和狀態字段將打破拉力組合項目看板應用程序中的組合框,以及導致加載狀態的問題。類型和狀態字段的更新中斷從WSAPI模型檢索
這裏有兩個受影響的代碼段,我想獲得關於如何更新一些澄清:
this.typeCombo = Ext.widget('rallycombobox', {
fieldLabel:'Type:',
labelWidth:30,
labelClsExtra:'rui-label',
stateful:false,
margin: '0 10 0 0',
storeConfig:{
autoLoad:true,
remoteFilter:false,
model:'Type',
sorters:{
property:'ordinalValue',
direction:'Asc'
},
cls:'typeCombo',
defaultSelectionToFirst:false,
context:this.getContext().getDataContext()
}
});
和
Ext.create('Rally.data.WsapiDataStore', {
model:'State',
context:this.getContext().getDataContext(),
autoLoad:true,
fetch:['Name', 'WIPLimit', 'Description'],
filters:[
{
property:'StateType',
value:this.currentType
},
{
property:'Enabled',
value:true
}
],
sorters:[
{
property:'OrderIndex',
direction:'ASC'
}
],
listeners:{
load:function (store, records) {
if (options.success) {
options.success.call(options.scope || this, records);
}
}
}
});
那麼你是說上面的代碼都不需要改變以支持新的結構嗎? – user1417835
2.0p3將於1.37(9/1)發佈。 p3包含Rally.ui.combobox.PortfolioItemTypeComboBox,它可以替代第一個代碼示例。查看這個幫助文件,瞭解底層wsapi查詢的變化情況:https://www.rallydev.com/help/portfolio-item-query-changes –
您應該將其作爲答案發布,以便我可以接受它,甚至儘管遷移到p3肯定有很多工作要做。 – user1417835