0

我是 aikau 的新手,正在研究一些示例。为什么当我在主对话框中单击按钮(添加标签)时没有出现对话框。

当我单击“上传”按钮时,主对话框即将出现。但在另一个按钮内存在应该调用另一个对话框。但那没有发生。如何调试这些问题?

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"
                                        }

                                    }
                                ]
                            }
                          }
                   }

            ]
          }
        }
       }
     ]
    };
4

0 回答 0