<?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 How to update the navigation/pathtree widget correctly? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65663#M22198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a tree of elements. When creating or deleting items, the tree is updated as it should, but when I change the name of the element, I want the element to be displayed with a new name in the tree. I tried to publish a topic similar to the case with the addition of a new element or the deletion of this one. When I edit&amp;nbsp;name I see that the parent element of the tree collapses and unfolds, but the name doesn't change.&lt;/P&gt;&lt;P&gt;For example, I have such tree (using my custom ChildRequestPublishTopic). After changing the name of the element (for example named "sub222"), I want to reload its parent element and show the new name of the element.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21288" class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/21288_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;For rendering the tree I use my custom widget that clones an "alfresco/navigation/PathTree" widget and subscribe to onCreate and onDelete:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9,1pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;alfSubscribe&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"MY_ITEM_CREATED"&lt;/SPAN&gt;, lang.&lt;SPAN style="color: #7a7a43;"&gt;hitch&lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;onContentCreated&lt;/SPAN&gt;));&lt;BR /&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;alfSubscribe&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"MY_ITEM_&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;DELETED"&lt;/SPAN&gt;, lang.&lt;SPAN style="color: #7a7a43;"&gt;hitch&lt;/SPAN&gt;(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;onContentDeleted&lt;/SPAN&gt;));&lt;/PRE&gt;&lt;P&gt;It works fine when I create a new tree item or delete one, but when I change the name of an item I try to publish "&lt;SPAN style="color: #008000; font-weight: bold;"&gt;MY_ITEM_CREATED&lt;/SPAN&gt;" or "&lt;SPAN style="color: #008000; font-weight: bold;"&gt;MY_ITEM_&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;DELETED&lt;/SPAN&gt;" with payload, but it doesn't help. I can see that parent item (for example-"22")&amp;nbsp;tries to refresh&amp;nbsp;(&lt;SPAN&gt;collapses and expands), but the name doesn't change. In the log I can see that it has requested child items and got a correct new name of the item.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2018 10:15:49 GMT</pubDate>
    <dc:creator>npavlov</dc:creator>
    <dc:date>2018-06-07T10:15:49Z</dc:date>
    <item>
      <title>How to update the navigation/pathtree widget correctly?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65663#M22198</link>
      <description>Hi,I have a tree of elements. When creating or deleting items, the tree is updated as it should, but when I change the name of the element, I want the element to be displayed with a new name in the tree. I tried to publish a topic similar to the case with the addition of a new element or the deletio</description>
      <pubDate>Thu, 07 Jun 2018 10:15:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65663#M22198</guid>
      <dc:creator>npavlov</dc:creator>
      <dc:date>2018-06-07T10:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to update the navigation/pathtree widget correctly?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65664#M22199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Screenshots and sample code might make it easier for others to provide assistance with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 03:42:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65664#M22199</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-06-13T03:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to update the navigation/pathtree widget correctly?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65665#M22200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 15:16:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65665#M22200</guid>
      <dc:creator>npavlov</dc:creator>
      <dc:date>2018-06-13T15:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to update the navigation/pathtree widget correctly?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65666#M22201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to modify function&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9,1pt;"&gt;&lt;SPAN style="color: #7a7a43;"&gt;refreshTreeNode&lt;/SPAN&gt;: &lt;SPAN style="color: #000080; font-weight: bold;"&gt;function &lt;/SPAN&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;alfresco_navigation_PathTree__refreshTreeNode&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;and after collapse tree I add&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9,1pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;delete this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;tree&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;_itemNodesMap&lt;/SPAN&gt;[treeNode.&lt;SPAN style="color: #7a7a43;"&gt;getIdentity&lt;/SPAN&gt;()];&lt;/PRE&gt;&lt;P&gt;to delete its saved values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 12:57:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65666#M22201</guid>
      <dc:creator>npavlov</dc:creator>
      <dc:date>2018-07-27T12:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to update the navigation/pathtree widget correctly?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65667#M22202</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How did you do to customize the icons?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 23:09:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-update-the-navigation-pathtree-widget-correctly/m-p/65667#M22202</guid>
      <dc:creator>eliosn</dc:creator>
      <dc:date>2020-04-09T23:09:49Z</dc:date>
    </item>
  </channel>
</rss>

