为什么子对话框没有进入aikau的主对话框

时间:2017-03-16 17:06:11

标签: alfresco-share aikau

我是aikau的新手,正在研究一些例子。当我点击主对话框内的按钮(ADD TAGS)时,为什么没有对话框。

当我点击上传按钮时,主对话框即将到来。但是在另一个按钮内存在应该调用另一个对话框。但那不会发生。如何调试这些问题?

model.jsonModel = {
      services: [
        "alfresco/services/ContentService",
        "alfresco/services/DialogService",
        "alfresco/services/DocumentService",

        "alfresco/services/NotificationService",
        "alfresco/services/CrudService"
      ],
      widgets: [
        {
          name: "alfresco/buttons/AlfButton",
          config: {
            label: "Upload",
            publishTopic: "ALF_CREATE_FORM_DIALOG_REQUEST",
            name: "targetData.destination",
            publishPayload: {
            dialogId: "UPLOAD_DIALOG",
            dialogTitle: "Upload a file",
            formSubmissionTopic: "ALF_UPLOAD_REQUEST",
            formSubmissionPayloadMixin: {
              targetData: {
                siteId: null,
                containerId: null
              }
            },
            widgets: [
                 {
                       name: "alfresco/forms/controls/TextBox",
                       config: {
                          fieldId: "Name",
                          name: "Name",
                          label: "Name",
                          placeHolder: "Name"

                       }
                    },

                    {
                           name: "alfresco/forms/controls/TextBox",
                           config: {
                              fieldId: "Description",
                              name: "Description",
                              label: "Description",
                              placeHolder: "Description"
                           }
                        },

                   {
                          name: "alfresco/buttons/AlfButton",
                          config: {
                            label: "Add Tags",
                            publishTopic: "ALF_CREATE_FORM_DIALOG_REQUEST",
                            publishPayload: {
                            dialogId: "ADD_TAGS",
                            dialogTitle: "Select.....",
                            formSubmissionTopic: "ALF_UPLOAD_REQUEST",
                            formSubmissionPayloadMixin: {
                              targetData: {
                                siteId: null,
                                containerId: null
                              }
                            },
                            widgets: [
                                        {
                                            name: "alfresco/forms/controls/SimplePicker",
                                            config: {
                                           label: "Pick Tags",
                                           description: "This is a simple picker publishes a request to get data to display",
                                           name: "Tags",
                                           loadDataPublishTopic: "ALF_CRUD_GET_ALL",
                                           loadDataPublishPayload: {
                                             url: "api/tags/workspace/SpacesStore?details=true&from=0&size=15"
                                           },
                                           itemsProperty: "data.items",
                                           itemKey: "name",
                                           propertyToRender: "name",
                                           availableItemsLabel: "Available Tags",
                                           pickedItemsLabel: "Currently Selected Tags"
                                        }

                                    }
                                ]
                            }
                          }
                   }

            ]
          }
        }
       }
     ]
    };

0 个答案:

没有答案