AnsweredAssumed Answered

aikau - AlfList in dialog

Question asked by nancygaillard on Aug 20, 2015
Latest reply on Sep 30, 2015 by nancygaillard
Hello,

I would know how can I have an AlfList in a dialog?
I tried this simple test, but it doesn't work …

The original test was a a click on a propertylink (in a alfList) which would generate a dialog which would contain a list - (precision if I have to do something different)
The problem is that the worth I obtain is a simple dialog, and the best a dialog with an error explaining a difficulty to render the view (sorry I am French)

I have seen https://github.com/Alfresco/Aikau/blob/master/tutorial/chapters/Tutorial8.md but I imagine I don't understand someting… So, some help would be welcome!

<blockcode>
model.jsonModel = {
  services: [
   "alfresco/services/CrudService",
   "alfresco/services/DialogService",
  ],
  widgets: [
   {
      name: "alfresco/buttons/AlfButton",
      config:{
         label:" Show groups",
         publishTopic: "ALF_CREATE_DIALOG_REQUEST",
         publishPayload: {
            dialogTitle: "Groups",
            widgetsContents:[
               {
                  name: "alfresco/lists/AlfList",
                  waitForPageWidgets: false,
                  loadDataPublishTopic: "ALF_CRUD_GET_ALL",
                  loadDataPublishPayload: {
                     url: "api/groups"
                  },
                  config:{
                     widgets:[{
                        name: "alfresco/lists/views/AlfList",
                        config:{
                           widgets:[{
                              name:"alfresco/lists/views/AlfListView",
                              config:{
                                 widgets:[{
                                    name: "alfresco/lists/views/layouts/Row",
                                    config:{
                                       widgets:[{
                                          name:"alfresco/lists/views/layouts/Cell",
                                          config:{
                                             widgets:[{
                                                name: "alfresco/renderers/Property",
                                                config:{
                                                   propertyToRender: "displayName"
                                                }
                                             }]
                                          }
                                       }]
                                    }
                                 }]
                              }
                           }]
                           
                        }
                     }]
                  }
               }
            ]
         }
      }
   }
  ]
};
</blockcode>

Outcomes