AnsweredAssumed Answered

Alfresco Aikau Widgets on share-header.get.js

Question asked by gawel on Nov 22, 2017
Latest reply on Nov 28, 2017 by gawel

Hi,

Component Alfresco Aikau Widgets seen doen'st work on share-header-get.js (Select list is empty and no error)

 

code :

 

var siteService = widgetUtils.findObject(model.jsonModel, "id", "SITE_SERVICE");

 

if (siteService && siteService.config) {

 

    // #################################################
    // ### customize site popup
    // #################################################
    siteService.config.widgetsForCreateSiteDialogOverrides = [
  
    // call webscript for listbox
    {

        id : "site-departement",
        name : "alfresco/forms/controls/Select",
        // name : "alfresco/forms/controls/MultiSelectInput",
        targetPosition : "BEFORE",
        targetId : "CREATE_SITE_FIELD_TITLE",
        config : {
            fieldId : "site-departement",
            label : "label here",
            name : "departement",
            description : "comment here",

            optionsConfig : {
                queryAttribute : "shortName",
                publishTopic : "ALF_GET_FORM_CONTROL_OPTIONS",
                publishPayload : {
                    url : page.url.context + "/proxy/alfresco/api/groups/ALFRESCO_ADMINISTRATORS/children",
                    resultsProperty : "options",
                    itemsAttribute : "data",
                    labelAttribute : "displayName",
                    valueAttribute : "shortName"
                }

            }
        }

    }

    ];

}

 

The list box keep empty. The only error i found is on client side : "TypeError: this.options is null" (need to active debug on alfresco share).

 

Have you any idea?

 

thx

Outcomes