03-22-2010 03:50 AM
08-11-2010 11:56 AM
javascript:alert(Alfresco.doclib.Actions.prototype.onActionBackup);
isfunction DL_onActionBackup(file) {
this.modules.actions.genericAction({success: {message: this.msg("message.backup.success", file.displayName)}, failure: {message: this.msg("message.backup.failure", file.displayName)}, webscript: {name: "backup/site/{site}/{container}", method: Alfresco.util.Ajax.POST}, params: {site: this.options.siteId, container: this.options.containerId}, config: {requestContentType: Alfresco.util.Ajax.JSON, dataObj: {nodeRefs: [file.nodeRef]}}});
}
08-11-2010 02:52 PM
08-12-2010 02:55 AM
08-12-2010 03:06 AM
08-12-2010 05:00 AM
/**
* DocumentList "Backup" action
*
* @namespace Alfresco
* @class Alfresco.DocumentList
*/
(function()
{
/**
* Backup single document.
*
* @method onActionBackup
* @param row {object} DataTable row representing file to be actioned
*/
Alfresco.doclib.Actions.prototype.onActionBackup = function DL_onActionBackup(file)
{
this.modules.actions.genericAction(
{
success:
{
message: this.msg("message.backup.success", file.displayName)
},
failure:
{
message: this.msg("message.backup.failure", file.displayName)
},
webscript:
{
name: "backup/site/{site}/{container}",
method: Alfresco.util.Ajax.POST
},
params:
{
site: this.options.siteId,
container: this.options.containerId
},
config:
{
requestContentType: Alfresco.util.Ajax.JSON,
dataObj:
{
nodeRefs: [file.nodeRef]
}
}
});
};
})();
You said but please verify the action is there.- but - how can i achive that ?
08-12-2010 08:57 AM
…
You saidbut please verify the action is there.- but - how can i achive that ?
…Regards,…javascript:alert(Alfresco.DocumentList.prototype.onActionBackup);
08-13-2010 06:54 AM
Alfresco.DocumentList.prototype.onActionBackup = function DL_onActionBackup(file)
{
this.modules.actions.genericAction(
…
success:
{
message: this.msg("message.backup.success", file.displayName)
},
failure:
{
message: this.msg("message.backup.failure", file.displayName)
},
….
}
to get it work for Alfresco version 3.3.Alfresco.DocumentList.prototype.onActionBackup = function DL_onActionBackup(file)
{
console.log("File Node: "+file.displayName);
this.modules.actions.genericAction(
….
08-17-2010 03:21 AM
09-23-2013 07:22 AM
(function()
{
/**
* Backup single document.
*
* @method onActionBackup
* @param file {object} Object literal representing one or more file(s) or folder(s) to be actioned
*/
YAHOO.Bubbling.fire("registerAction",
{
actionName: "onActionBackup",
onActionBackup: function dlA_onActionBackup(record)
{
alert("TEST");
var displayName = record.displayName;
var nodeRef = record.nodeRef;
this.modules.actions.genericAction(
{
success:
{
event:
{
name: "metadataRefresh"
},
message: this.msg("message.archive.success", record.displayName)
},
failure:
{
message: this.msg("message.archive.failure",record.displayName)
},
webscript:
{
name:"/slingshot/doclib/action/archive/site/{site}/{container}",
method: Alfresco.util.Ajax.POST
},
params:
{
site: this.options.siteId,
container: this.options.containerId
},
config:
{
requestContentType: Alfresco.util.Ajax.JSON,
dataObj:
{
nodeRefs: [record.nodeRef]
}
}
});
}
});
})();
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.