12-19-2016 11:37 AM
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?
12-19-2016 12:12 PM
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:
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.