我正在尝试在 ICN 中呈现保存的搜索(搜索模板),下面是用于调用服务插件的代码/通用类/
ecm.model.desktop
.getRepository(Desktop.defaultRepositoryId).retrieveSearchTemplate("{40B98008-EBB2-420A-8163-C74699EB678D}",null,null,function(searchTeamplate){
debugger;
console.log("searchTeamplate" +searchTeamplate);
this.chkSearchTabContainer = dijit.byId("chkSearchTabContainer");
if(!this.chkSearchTabContainer){
this.chkSearchTabContainer = new SearchTabContainer({
},dojo.byId(domConstruct.create("div", {
id : "checkSearchDIV"
}, dojo.byId("myProgStackContainer"))))
}
this.chkSearchTabContainer.openTab({
tabType : "search",
repository : ecm.model.desktop.getRepository(Desktop.defaultRepositoryId),
openNewTab : true,
selected : true,
closable : true,
name:"try",
// version: version,
"searchTemplate" : searchTeamplate,
});
this.chkSearchTabContainer.startup();
this.chkSearchTabContainer.show();
});
console.log 正在打印 searchTeamplateecm.model.SearchTemplate[StoredSearch,{83443B0F-496B-46B0-B43C-5A23E494688D},{40B98008-EBB2-420A-8163-C74699EB678D}]
但是没有渲染。相反,我不断收到一条错误消息,因为 TypeError: name is undefined。下面是错误堆栈跟踪
cache["dojo/_base/loader"]/</slashName
.cache["dojo/_base/loader"]/</dojo.require
.cache["ecm/widget/layout/_TabContainerBase"]/</<._openTab
.cache["ecm/widget/layout/_TabContainerBase"]/</<.openTab
inherited
.cache["ecm/widget/search/SearchTabContainer"]/</<.openTab
.init/<
.cache["ecm/model/Repository"]/</<._retrieveSearchTemplateCompleted
.cache["ecm/model/Repository"]/</<.retrieveSearchTemplate/request<
.cache["dojo/_base/lang"]/</lang.hitch/<
.cache["ecm/model/Request"]/</Request<._onFinished
.cache["ecm/model/Request"]/</Request<.send/this.xmlHttpRequest.onreadystatechange<
.cache["dojo/_base/lang"]/</lang.hitch/<