<?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 Show tag selection pop-up in multi selection in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/show-tag-selection-pop-up-in-multi-selection/m-p/93443#M27628</link>
    <description>&lt;P&gt;I need to select/define tags to apply to a multiple selection of documents in Share (Alfresco 6.2). I have the multiple selection&amp;nbsp; working, invoking my web script where I fixed a tag for testing purposes. This is the relevat code in the YUI js file:&lt;/P&gt;&lt;PRE&gt;YAHOO.Bubbling.fire("registerAction", 
			{
				actionName: "onActionMyTags",
				fn: function tags_onActionMyTags(selectedNodes) {
					var nodeIDs = "";
					var tag = "";
                    var ii = 0;
                    for (var i=0, ii=selectedNodes.length ; i&amp;lt;ii ; i++){
        	        	nodeIDs = nodeIDs + "*" + selectedNodes[i].nodeRef.substring(24);
        	    	}
                    nodeIDs = nodeIDs.substring(1);
                    tag = "MYTAG";
					this.modules.actions.genericAction({
						success: {
							message: this.msg("msg.success")
						},
						failure: {
							message: this.msg("msg.failure")
						}
		                },
						webscript: {
							name: "mytagswebscript?nodeRef={nodeRef}&amp;amp;tag={tag}",
							stem: Alfresco.constants.PROXY_URI,
							method: Alfresco.util.Ajax.GET,
							params: {
                                nodeRef: nodeIDs,
                                tag: tag
                            }
						},
						config: {
							requestContentType: Alfresco.util.Ajax.JSON
						}
			})
		}
	});&lt;/PRE&gt;&lt;P&gt;I need to show the tag selection pop up that the user gets when he associates tags to individual documents in Share and put the selection in a tag array.&lt;/P&gt;&lt;P&gt;As a worst case solution I can settle for a pop up that shows a field where the user could type in tags (would separate with commas). I need for the field content to be available in the YUI js.&lt;/P&gt;&lt;P&gt;How is this done? Any pointers or links to a tutorial are appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2020 23:30:07 GMT</pubDate>
    <dc:creator>uscn2020</dc:creator>
    <dc:date>2020-08-07T23:30:07Z</dc:date>
    <item>
      <title>Show tag selection pop-up in multi selection</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/show-tag-selection-pop-up-in-multi-selection/m-p/93443#M27628</link>
      <description>&lt;P&gt;I need to select/define tags to apply to a multiple selection of documents in Share (Alfresco 6.2). I have the multiple selection&amp;nbsp; working, invoking my web script where I fixed a tag for testing purposes. This is the relevat code in the YUI js file:&lt;/P&gt;&lt;PRE&gt;YAHOO.Bubbling.fire("registerAction", 
			{
				actionName: "onActionMyTags",
				fn: function tags_onActionMyTags(selectedNodes) {
					var nodeIDs = "";
					var tag = "";
                    var ii = 0;
                    for (var i=0, ii=selectedNodes.length ; i&amp;lt;ii ; i++){
        	        	nodeIDs = nodeIDs + "*" + selectedNodes[i].nodeRef.substring(24);
        	    	}
                    nodeIDs = nodeIDs.substring(1);
                    tag = "MYTAG";
					this.modules.actions.genericAction({
						success: {
							message: this.msg("msg.success")
						},
						failure: {
							message: this.msg("msg.failure")
						}
		                },
						webscript: {
							name: "mytagswebscript?nodeRef={nodeRef}&amp;amp;tag={tag}",
							stem: Alfresco.constants.PROXY_URI,
							method: Alfresco.util.Ajax.GET,
							params: {
                                nodeRef: nodeIDs,
                                tag: tag
                            }
						},
						config: {
							requestContentType: Alfresco.util.Ajax.JSON
						}
			})
		}
	});&lt;/PRE&gt;&lt;P&gt;I need to show the tag selection pop up that the user gets when he associates tags to individual documents in Share and put the selection in a tag array.&lt;/P&gt;&lt;P&gt;As a worst case solution I can settle for a pop up that shows a field where the user could type in tags (would separate with commas). I need for the field content to be available in the YUI js.&lt;/P&gt;&lt;P&gt;How is this done? Any pointers or links to a tutorial are appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 23:30:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/show-tag-selection-pop-up-in-multi-selection/m-p/93443#M27628</guid>
      <dc:creator>uscn2020</dc:creator>
      <dc:date>2020-08-07T23:30:07Z</dc:date>
    </item>
  </channel>
</rss>

