2012-06-22 23 views
1

在Rally SDK 2中,我製作了一個標籤選取器,然後將其添加到容器中。它呈現正常,但是當用戶點擊下拉箭頭時,控制檯報告一個錯誤(Uncaught TypeError:Object#沒有方法'getContextPath'),標籤選擇器不會讓用戶選擇標籤(每隔一段時間,儘管如此,他們被列出)。Rally SDK 2 tagpicker是否有必填字段?對象沒有方法'getContextPath'

 this.tag_picker = Ext.create('Rally.ui.picker.TagPicker', { 
      width: 275, 
      fieldLabel: "Tags: ", 
      allowBlank: true, 
      minHeight: 100, 
      autoExpand: true 
     }); 
     this.down('#big_box').add(this.tag_picker); 

回答

0

有一個錯誤查詢時用於首選項鍵,以確定是否應在顯示工具提示和它試圖與Rally.getContextPath建立請求URL()。作爲一種解決方法,您可以將toolTipPreferenceKey設置爲undefined(toolTipPreferenceKey:undefined)以避免看到此錯誤。