AnsweredAssumed Answered

Publish topic from dialog box element

Question asked by anand.mohan@nike.com on Jun 15, 2015
Hi,

I am trying to publish a topic from a text box inside a dialog box. The topic is subscribed correctly in the service class but the control never goes there.
Below id the part of code where I am publishing the topic. Could someone let me know if this is possible?

My issue is that I need to publish multiple topics from a dialog box to get data and populate the elements in dialog box.


{
            name: "alfresco/buttons/AlfButton",
            config: {
                label: "Edit Asset Property",

                publishTopic: ["ALF_CREATE_FORM_DIALOG_REQUEST"],
                publishPayload: {
                    dialogTitle: "Edit Asset Property",
                    dialogConfirmationButtonTitle: "Save",
                    dialogCancellationButtonTitle: "Cancel",
                    fixedWidth: true,
                    formSubmissionTopic: "EDIT_ASSET_PROPERTY",
                    widgets: [
                        {
                            id:"ASSET_EDIT_PROPERTY_ASSET_NAME",
                            name: "alfresco/forms/controls/TextBox",
                            config: {
                                fieldId: "Asset name",
                                label: "Name:",
                                name: "AssetName",
                                requirementConfig: {
                                    initialValue: true
                                } ,
                                loadDataPublishTopic: "FETCH_ASSET_METADATA",
                                itemsProperty: "properties",
                                propertyToRender: "value",
                                style: {
                                    marginLeft: "10px"
                                }

                            }
                        }
                            ]
                }
            }
        }

Outcomes