2012-08-22 24 views
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); 
      } 
     } 
    } 
}); 

回答

0

下一個版本應該解決這個問題。一旦1.37結束(9/1),它應該再次開始工作。

+0

那麼你是說上面的代碼都不需要改變以支持新的結構嗎? – user1417835

+1

2.0p3將於1.37(9/1)發佈。 p3包含Rally.ui.combobox.PortfolioItemTypeComboBox,它可以替代第一個代碼示例。查看這個幫助文件,瞭解底層wsapi查詢的變化情況:https://www.rallydev.com/help/portfolio-item-query-changes –

+0

您應該將其作爲答案發布,以便我可以接受它,甚至儘管遷移到p3肯定有很多工作要做。 – user1417835