AnsweredAssumed Answered

Widget faceted-search multiselect

Question asked by davidm on Dec 17, 2018

Hi,

 

i want to create a custom widget that call a webscript in faceted-search page, So i override faceted-search.get.js adding this multiselect menu:

 

var createExportResultActionMenuItem = function () {
return {
id: "EXPORT_LINK_SEARCH",
name: "alfresco/documentlibrary/AlfDocumentActionMenuItem",
config: {
label: msg.get("faceted-search.export-action.button-label"),
iconImage: url.context + "/res/components/documentlibrary/actions/document-download-16.png",
type: "",
permission: "",
asset: "",
href: "",
hasAspect: "",
notAspect: "",
publishTopic: "",
publishPayload: {
action: "EXPORT_LINK_SEARCH"
}
}
}
};

 

var selectedItemsMenu = widgetUtils.findObject(model.jsonModel, "id", "SELECTED_ITEMS_MENU");
selectedItemsMenu.config.widgets.push(createExportResultActionMenuItem());

 

 

And now I need to configure it to call my web script, Does anyone know how to do it?

Outcomes