I need to call the Alfresco.util.PopupManager.displayMessage function before starting a long running Share document library custom action.I've tried to pass the wait parameter to the generic action as follows: Alfresco.DocumentList.prototype.onActionStartWorkflows = function DL_onActionStartWorkflows(file) {
this.modules.actions.genericAction(
{
success:
{
message: this.msg("message.start-workflows.success", file.displayName)
},
failure:
{
message: this.msg("message.start-workflows.failure", file.displayName)
},
webscript:
{
name: "start-workflows/site/{site}/{container}",
method: Alfresco.util.Ajax.POST
},
wait:
{
message: this.msg("message.start-workflows.please-wait")
},
params:
{
site: this.options.siteId,
container: this.options.containerId
},
config:
{
requestContentType: Alfresco.util.Ajax.JSON,
dataObj:
{
nodeRefs: [file.nodeRef]
}
}
});
};
the action is correctly executed but no message is shown.If I try to call the Alfresco.util.PopupManager.displayMessage in the action script:Alfresco.util.PopupManager.displayMessage(
{
text: "Starting workflow, please wait"
});
the script fails to execute with no log messages so I can't figure the reason.Can anyone help me? Thanks in advance.Remigio