Rally SDK 2 标签选择器是否有必填字段?对象没有方法'getContextPath'

Is there a required field for Rally SDK 2 tagpicker? Object has no method 'getContextPath'

本文关键字:对象 有方法 字段 getContextPath 标签 SDK 选择器 是否 Rally      更新时间:2023-09-26

在Rally SDK 2中,我创建了一个标签选择器,然后将其添加到容器中。 它呈现正常,但是当用户点击下拉箭头时,控制台会报告错误(未捕获的类型错误:对象 # 没有方法"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 );

查询首选项键以确定是否应显示工具提示时存在错误,并尝试使用 Rally.getContextPath() 构建请求 URL。 作为解决方法,您可以将 toolTipPpreferencesKey 设置为 undefined (toolTipPpreferencesKey: undefined) 以避免看到此错误。