I'm developing custom action to open search template with specified values the action working fine for the first time but when trigger the action again nothing happen, so i need to close the search tab before retrieving Search Template again with the new values. i tried this code :
var SearchTabContainer = dijit.byId("ecm_widget_search_SearchTabContainer_0");
if(SearchTabContainer){
SearchTabContainer.closeTab({
tabType: "search",
name:"ZH&P Document Search",
title:"ZH&P Document Search",
repository: repository,
selected: true,
closable: true
}, false);
}
but still not working, can anyone mention the correct arguments for "closeTab" function ?