<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Aikau Search Result - Process selected Item in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/aikau-search-result-process-selected-item/m-p/112501#M31361</link>
    <description>&lt;P&gt;I am trying to display new dropdown in aikau search result beside existing dropdown with my custom action.&lt;/P&gt;&lt;P&gt;Below Code I have tried and I am succeed to display.&lt;/P&gt;&lt;PRE&gt;model.jsonModel.services.push("search/owner");
var menubar = widgetUtils.findObject(model.jsonModel.widgets, "id","FCTSRCH_SEARCH_LIST_MENU_BAR");
if (menubar &amp;amp;&amp;amp; menubar.config &amp;amp;&amp;amp; menubar.config.widgets) {
	menubar.config.widgets.unshift({
				id : "SELECTED_ITEMS_MENU",
				name : "alfresco/documentlibrary/AlfSelectedItemsMenuBarPopup",
				config : {
					label : "Selected Items...",
					itemKeyProperty : "nodeRef",
					
					widgets : [ {
						id : "SELECTED_ITEMS_ACTIONS_GROUP",
						name : "alfresco/menus/AlfMenuGroup",
						config : {
							widgets : [ {
								name : "alfresco/documentlibrary/AlfDocumentActionMenuItem",
								config : {
									id : "owner",
									label : "Action 1",
									iconImage : "",
									type : "action-link",
									permission : "",
									asset : "",
									href : "",
									hasAspect : "",
									notAspect : "",
									publishTopic : "CUSTOM_TOPIC",
									publishPayload: {
							               
							            }

								}
							} ]
						}
					} ]
				}
			});

	menubar.config.widgets.unshift({
		name : "alfresco/documentlibrary/AlfSelectDocumentListItems",
		config : {
			widgets : [ {
				name : "alfresco/menus/AlfMenuGroup",
				config : {
					widgets : [ {
						name : "alfresco/menus/AlfMenuItem",
						config : {
							label : "select.all.label",
							publishTopic : "ALF_DOCLIST_FILE_SELECTION",
							publishPayload : {
								label : "select.all.label",
								value : "selectAll"
							}
						}
					}, {
						name : "alfresco/menus/AlfMenuItem",
						config : {
							label : "select.none.label",
							publishTopic : "ALF_DOCLIST_FILE_SELECTION",
							publishPayload : {
								label : "select.none.label",
								value : "selectNone"
							}
						}
					} ]
				}
			} ]
		}
	});
}

var searchresult = widgetUtils.findObject(model.jsonModel.widgets, "id","FCTSRCH_SEARCH_RESULT");
if (searchresult &amp;amp;&amp;amp; searchresult.config) {
	searchresult.config.showSelector = true;
}&lt;/PRE&gt;&lt;P&gt;owner.js&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;define([ "dojo/_base/declare", "dijit/_WidgetBase", "alfresco/core/Core",
		"dojo/_base/lang" ], function(declare, _Widget, Core, lang) {
	return declare([ _Widget, Core ], {

		
		constructor : function constructor(args) {
			this.alfSubscribe("CUSTOM_TOPIC", lang.hitch(this,this._onPayloadReceive));
		},

		_onPayloadReceive : function(payload) {
			console.log(payload);
		}

	});
});&lt;/PRE&gt;&lt;P&gt;When I click on Action 1, I am able to subscr that ibe topic in my service file which is owner.js&lt;/P&gt;&lt;P&gt;My question is How Can I pass selected items(or noderef) in my service?I want to get noderef of selected documents.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 07:55:47 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2020-04-08T07:55:47Z</dc:date>
    <item>
      <title>Aikau Search Result - Process selected Item</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aikau-search-result-process-selected-item/m-p/112501#M31361</link>
      <description>&lt;P&gt;I am trying to display new dropdown in aikau search result beside existing dropdown with my custom action.&lt;/P&gt;&lt;P&gt;Below Code I have tried and I am succeed to display.&lt;/P&gt;&lt;PRE&gt;model.jsonModel.services.push("search/owner");
var menubar = widgetUtils.findObject(model.jsonModel.widgets, "id","FCTSRCH_SEARCH_LIST_MENU_BAR");
if (menubar &amp;amp;&amp;amp; menubar.config &amp;amp;&amp;amp; menubar.config.widgets) {
	menubar.config.widgets.unshift({
				id : "SELECTED_ITEMS_MENU",
				name : "alfresco/documentlibrary/AlfSelectedItemsMenuBarPopup",
				config : {
					label : "Selected Items...",
					itemKeyProperty : "nodeRef",
					
					widgets : [ {
						id : "SELECTED_ITEMS_ACTIONS_GROUP",
						name : "alfresco/menus/AlfMenuGroup",
						config : {
							widgets : [ {
								name : "alfresco/documentlibrary/AlfDocumentActionMenuItem",
								config : {
									id : "owner",
									label : "Action 1",
									iconImage : "",
									type : "action-link",
									permission : "",
									asset : "",
									href : "",
									hasAspect : "",
									notAspect : "",
									publishTopic : "CUSTOM_TOPIC",
									publishPayload: {
							               
							            }

								}
							} ]
						}
					} ]
				}
			});

	menubar.config.widgets.unshift({
		name : "alfresco/documentlibrary/AlfSelectDocumentListItems",
		config : {
			widgets : [ {
				name : "alfresco/menus/AlfMenuGroup",
				config : {
					widgets : [ {
						name : "alfresco/menus/AlfMenuItem",
						config : {
							label : "select.all.label",
							publishTopic : "ALF_DOCLIST_FILE_SELECTION",
							publishPayload : {
								label : "select.all.label",
								value : "selectAll"
							}
						}
					}, {
						name : "alfresco/menus/AlfMenuItem",
						config : {
							label : "select.none.label",
							publishTopic : "ALF_DOCLIST_FILE_SELECTION",
							publishPayload : {
								label : "select.none.label",
								value : "selectNone"
							}
						}
					} ]
				}
			} ]
		}
	});
}

var searchresult = widgetUtils.findObject(model.jsonModel.widgets, "id","FCTSRCH_SEARCH_RESULT");
if (searchresult &amp;amp;&amp;amp; searchresult.config) {
	searchresult.config.showSelector = true;
}&lt;/PRE&gt;&lt;P&gt;owner.js&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;define([ "dojo/_base/declare", "dijit/_WidgetBase", "alfresco/core/Core",
		"dojo/_base/lang" ], function(declare, _Widget, Core, lang) {
	return declare([ _Widget, Core ], {

		
		constructor : function constructor(args) {
			this.alfSubscribe("CUSTOM_TOPIC", lang.hitch(this,this._onPayloadReceive));
		},

		_onPayloadReceive : function(payload) {
			console.log(payload);
		}

	});
});&lt;/PRE&gt;&lt;P&gt;When I click on Action 1, I am able to subscr that ibe topic in my service file which is owner.js&lt;/P&gt;&lt;P&gt;My question is How Can I pass selected items(or noderef) in my service?I want to get noderef of selected documents.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 07:55:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aikau-search-result-process-selected-item/m-p/112501#M31361</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2020-04-08T07:55:47Z</dc:date>
    </item>
  </channel>
</rss>

