<?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 loadDataPublishPayload doesn't work in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/loaddatapublishpayload-doesn-t-work/m-p/297266#M250396</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'm trying to show a documents list in a dashlet and it works when I'm directly including the nodes with the currentData property but it's not working when I'm using loadDataPublishPayload. The code&amp;nbsp;goes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define(&lt;BR /&gt;[ "dojo/_base/declare", "alfresco/core/Core", &lt;BR /&gt;"alfresco/core/I18nUtils", "alfresco/dashlets/Dashlet" ],&lt;BR /&gt;function(declare, AlfCore, I18nUtils, Dashlet) {&lt;BR /&gt;return declare(&lt;BR /&gt; [ Dashlet ],&lt;BR /&gt; {&lt;BR /&gt; ....&lt;BR /&gt; widgetsForBody : [ {&lt;BR /&gt; id : "MY_DASHLET_VERTICAL_LAYOUT",&lt;BR /&gt; name : "alfresco/layout/VerticalWidgets",&lt;BR /&gt; config : {&lt;BR /&gt; widgets : [ &lt;BR /&gt; {&lt;BR /&gt; id : "MY_DASHLET_MY_CRUD",&lt;BR /&gt; name : "alfresco/lists/AlfList",&lt;BR /&gt; config : { &lt;BR /&gt; loadDataPublishTopic : "ALF_CRUD_GET_ALL", &lt;BR /&gt; waitForPageWidgets: false, &lt;BR /&gt;loadDataPublishPayload : { &lt;BR /&gt; url : "test/my-list" &lt;BR /&gt; },&lt;BR /&gt; itemsProperty : "items",&lt;BR /&gt; widgets : [ {&lt;BR /&gt; name : "alfresco/documentlibrary/views/AlfDocumentListView",&lt;BR /&gt; config : {&lt;BR /&gt; widgets : [ {&lt;BR /&gt; id : "VIEW_ROW",&lt;BR /&gt; ..............&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Whenever I directly call the url&amp;nbsp;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/service/hhk/my-list" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/service/test/my-list&lt;/A&gt;&lt;SPAN&gt; in a browser everything works, but this webscript isn't calling when I'm showing this dashlet and, of course, I don't get any result or console error. I've tried using&amp;nbsp;a Share webscript (adding&amp;nbsp;urlType: "SHARE") and it's not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2016 16:37:47 GMT</pubDate>
    <dc:creator>saruqui</dc:creator>
    <dc:date>2016-12-19T16:37:47Z</dc:date>
    <item>
      <title>loadDataPublishPayload doesn't work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/loaddatapublishpayload-doesn-t-work/m-p/297266#M250396</link>
      <description>Hi!I'm trying to show a documents list in a dashlet and it works when I'm directly including the nodes with the currentData property but it's not working when I'm using loadDataPublishPayload. The code&amp;nbsp;goes like this:define([ "dojo/_base/declare", "alfresco/core/Core", "alfresco/core/I18nUtils", "al</description>
      <pubDate>Mon, 19 Dec 2016 16:37:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/loaddatapublishpayload-doesn-t-work/m-p/297266#M250396</guid>
      <dc:creator>saruqui</dc:creator>
      <dc:date>2016-12-19T16:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: loadDataPublishPayload doesn't work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/loaddatapublishpayload-doesn-t-work/m-p/297267#M250397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;What version of Alfresco and Aikau are you using?&lt;/LI&gt;&lt;LI&gt;Have you tried out the steps as outlined in this blog post:&amp;nbsp;&lt;A href="https://community.alfresco.com/community/ecm/blog/2016/09/27/how-to-create-an-aikau-dashlet-for-share" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/ecm/blog/2016/09/27/how-to-create-an-aikau-dashlet-for-share&lt;/A&gt;&amp;nbsp;?&lt;/LI&gt;&lt;LI&gt;What debugging into this have you done so far? Have you used the &lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/DebugLog.html" rel="nofollow noopener noreferrer"&gt;DebugLog&lt;/A&gt; widget to inspect what publications and subscriptions are occurring?&lt;/LI&gt;&lt;LI&gt;Have you set any break points on any of the code that is expected to be executed (such as the "loadData" function in the AlfList module?&lt;/LI&gt;&lt;LI&gt;Are you seeing any errors in the browser console? (make sure you're running with client debug mode enabled)&lt;/LI&gt;&lt;LI&gt;Are you seeing any XHR requests being made in the browser developer tools?&lt;/LI&gt;&lt;LI&gt;How are you trying to access this code? It's very hard to tell from the snippets of code you've provided - perhaps you can provide the entire example?&lt;/LI&gt;&lt;LI&gt;Is the &lt;A href="https://dev.alfresco.com/resource/docs/aikau-jsdoc/CrudService.html" rel="nofollow noopener noreferrer"&gt;CrudService&lt;/A&gt; actually on the page?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of the way that Aikau is implemented we have many, many implementations and unit tests going through this code path so it is most likely to be either:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A pub/sub scoping issue or the initial publication not being made&lt;/LI&gt;&lt;LI&gt;A missing service&lt;/LI&gt;&lt;LI&gt;The widgets not being defined correctly&lt;/LI&gt;&lt;LI&gt;A mis-match between the WebScript response schema and the configuration for the list&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 17:12:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/loaddatapublishpayload-doesn-t-work/m-p/297267#M250397</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-12-19T17:12:29Z</dc:date>
    </item>
  </channel>
</rss>

