10-27-2015 07:39 AM
(function()
{
YAHOO.Bubbling.fire("registerAction",
{
actionName: "onMHActionSetNotification",
fn: function onMHActionSetNotification(record)
{
//get node in question
var nodeRef = new Alfresco.util.NodeRef(record.nodeRef);
this.modules.actions.genericAction(
{
webscript: {
name: "http://servername:8080/alfresco/service/mh/fn/notifications/set",
method: "GET",
queryString: "node=" + nodeRef.nodeRef
},
success: {
message: "Notification added",
fn: function onMHActionSetNotification_success() {
Alfresco.util.PopupManager.displayMessage({
text: "Notification set successfully",
displayTime: 4
})
}
},
failure: {
message: "Notification failed to add",
fn: function onMHActionSetNotification_failure() {
Alfresco.util.PopupManager.displayMessage({
text: "Notification failure",
displayTime: 4
})
}
}
});
}
});
});
<config evaluator="string-compare" condition="DocLibCustom">
<dependencies>
<js src="components/documentlibrary/actions/mh.action.set-notification.js" />
</dependencies>
</config>
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="miller-set-notifications" icon="miller-notifications-set" type="javascript" label="miller.actions.set-notification.doclib">
<param name="function">onMHActionSetNotification</param>
</action>
</actions>
</config>
10-27-2015 04:17 PM
miller-set-notifications
action on the repo side? It's required to be declared and implemented to have share action working.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.