<?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 problem calling path selector in alfresco 5 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-calling-path-selector-in-alfresco-5/m-p/22995#M10031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, im migrating a share extension from alfresco 4.1 to alfresco 5.1. Im trying to use&amp;nbsp; a path selector&amp;nbsp; in a surf page . I have&amp;nbsp; a button that triggers&amp;nbsp;the&amp;nbsp;path selector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code of the button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function selectFolder(e){&lt;BR /&gt;&amp;nbsp; var cFolder = new Alfresco.module.DoclibGlobalFolder("doclib-selectFilterPath");&lt;/P&gt;&lt;P&gt;&amp;nbsp; var allowedViewModes =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Alfresco.module.DoclibGlobalFolder.VIEW_MODE_REPOSITORY&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;];&lt;BR /&gt;&amp;nbsp;YAHOO.Bubbling.on("folderSelected", function (layer, args)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; var obj = args[1];&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if (obj !== null)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.getElementById("rutaExtracto").value = obj.selectedFolder.path;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;document.getElementById("rutaExtractoNodeRef").value = obj.selectedFolder.nodeRef;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;document.getElementById("rutaExtracto").style.color = "black";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.getElementById("ruta Error").style.display="none"; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; }, this);&lt;BR /&gt;cFolder.setOptions(&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; allowedViewModes: allowedViewModes,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; containerId: "doclib-selectFilterPath",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; title: "Seleccione la ruta" &lt;BR /&gt;&amp;nbsp; });&lt;BR /&gt;&amp;nbsp;cFolder.showDialog();&lt;BR /&gt;&amp;nbsp;return false; // el boton no haga nada&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;in the ftll where the button is placed&amp;nbsp; i had to insert this includes :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;@markup id="css" &amp;gt;&lt;BR /&gt; &amp;lt;#-- CSS Dependencies --&amp;gt;&lt;BR /&gt; &amp;lt;@link href="${url.context}/res/modules/documentlibrary/global-folder.css" group="node-header"/&amp;gt;&lt;BR /&gt;&amp;lt;/@&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;@markup id="js" &amp;gt;&lt;BR /&gt; &amp;lt;#-- JS Dependencies --&amp;gt;&lt;BR /&gt; &amp;lt;script type="text/javascript" src="${url.context}/res/modules/documentlibrary/global-folder.js" group="node-header"&amp;gt;&amp;lt;/script&amp;gt; &lt;BR /&gt;&amp;lt;/@&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i press the button the&amp;nbsp; &amp;nbsp;path&amp;nbsp; selector appears ,but gets stuck while trying to load&amp;nbsp; the folder tree.In the browser console i find this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncaught TypeError: Alfresco.CommonComponentStyleFilterChain is not a constructor&lt;BR /&gt; at Alfresco.module.DoclibGlobalFolder.DLGF__buildCustomStyleClass [as _buildCustomStyleClass] (global-folder.js:1521)&lt;BR /&gt; at Alfresco.module.DoclibGlobalFolder.DLGF_lND_success (global-folder.js:572)&lt;BR /&gt; at Object.handleTransactionResponse (yui-common_5518510ec77ced541930f488625ed9c0.js:13891)&lt;BR /&gt; at yui-common_5518510ec77ced541930f488625ed9c0.js:13830&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know why this is happening? how could this be solved?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2017 08:30:25 GMT</pubDate>
    <dc:creator>aalvarezfern</dc:creator>
    <dc:date>2017-12-19T08:30:25Z</dc:date>
    <item>
      <title>problem calling path selector in alfresco 5</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-calling-path-selector-in-alfresco-5/m-p/22995#M10031</link>
      <description>Hello, im migrating a share extension from alfresco 4.1 to alfresco 5.1. Im trying to use&amp;nbsp; a path selector&amp;nbsp; in a surf page . I have&amp;nbsp; a button that triggers&amp;nbsp;the&amp;nbsp;path selector.Here is the code of the button:function selectFolder(e){&amp;nbsp; var cFolder = new Alfresco.module.DoclibGlobalFolder("doclib-selectF</description>
      <pubDate>Tue, 19 Dec 2017 08:30:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-calling-path-selector-in-alfresco-5/m-p/22995#M10031</guid>
      <dc:creator>aalvarezfern</dc:creator>
      <dc:date>2017-12-19T08:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem calling path selector in alfresco 5</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-calling-path-selector-in-alfresco-5/m-p/22996#M10032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to find the solution for this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 09:57:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-calling-path-selector-in-alfresco-5/m-p/22996#M10032</guid>
      <dc:creator>hardik_thakkar</dc:creator>
      <dc:date>2018-10-29T09:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem calling path selector in alfresco 5</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-calling-path-selector-in-alfresco-5/m-p/22997#M10033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you need to add this JS as dependency :&lt;/P&gt;&lt;P&gt;common-component-style-filter-chain.js&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2018 13:51:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-calling-path-selector-in-alfresco-5/m-p/22997#M10033</guid>
      <dc:creator>rbr</dc:creator>
      <dc:date>2018-12-13T13:51:41Z</dc:date>
    </item>
  </channel>
</rss>

