AnsweredAssumed Answered

loadDataPublishPayload doesn't work

Question asked by saruqui on Dec 19, 2016
Latest reply on Dec 19, 2016 by ddraper

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 goes like this:

 

define(
[ "dojo/_base/declare", "alfresco/core/Core",
"alfresco/core/I18nUtils", "alfresco/dashlets/Dashlet" ],
function(declare, AlfCore, I18nUtils, Dashlet) {
return declare(
[ Dashlet ],
{
....
widgetsForBody : [ {
id : "MY_DASHLET_VERTICAL_LAYOUT",
name : "alfresco/layout/VerticalWidgets",
config : {
widgets : [
{
id : "MY_DASHLET_MY_CRUD",
name : "alfresco/lists/AlfList",
config : {
loadDataPublishTopic : "ALF_CRUD_GET_ALL",
waitForPageWidgets: false,
loadDataPublishPayload : {
url : "test/my-list"
},
itemsProperty : "items",
widgets : [ {
name : "alfresco/documentlibrary/views/AlfDocumentListView",
config : {
widgets : [ {
id : "VIEW_ROW",
..............

Whenever I directly call the url http://localhost:8080/alfresco/service/test/my-list 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 a Share webscript (adding urlType: "SHARE") and it's not working.

Any idea?

Outcomes