Aikau选择未充满选项

时间:2018-07-19 08:02:55

标签: dojo html-select alfresco-share aikau

这是我的小部件配置:

id: "MY_CUSTOM_SELECT",
    name: "resources/saved-research-share/js/faceted-search/SavedResearchList",
    config: {
        fieldId: "MY_CUSTOM_SELECT_LIST",
        name: "customWidget",
        label: msg.get("faceted.search.menu.select.saved.research.label"),
        scopeFormControls: false,
        align: "left",
        optionsConfig: {
            publishTopic: "ALF_GET_FORM_CONTROL_OPTIONS",
            publishPayload: {
                url: url.context + "/proxy/alfresco/addon/savedResearch",
                itemsAttribute: "entries",
                labelAttribute: "id",
                valueAttribute: "value"
            },
            updateTopics: [
                { topic:"SAVED_RESEARCH_DELETED", global: true },
                { topic:"SAVED_RESEARCH_CREATED", global: true }
            ],
            publishGlobal: true
        }
    }

自定义窗口小部件只是基本选择的一小部分扩展,它在“ valuechangeOf”事件上添加了一个订阅,并使用导航服务来获取该选项后面的值。

My problem is that I can't manage to display something in share, as you can see:

有效地进行了HTTP调用,我得到一个包含以下JSON内容的200OK:

{
    "entries" :
    [
        {
            "id" : "my research",
            "value" : "http://localhost:8081/share/page/dp/ws/faceted-search#searchTerm=project%20test&scope=repo&sortField=null"
        }
    ]
}

任何想法为何Select组件将不使用给定的配置?

预先感谢

编辑:我正在使用Share 5.2.3 ent,它集成了aikau-1.0.101.10

0 个答案:

没有答案