AnsweredAssumed Answered

how to register custom js action

Question asked by nancyaggarwal on Jan 31, 2014
Latest reply on Feb 25, 2014 by nancyaggarwal
Hi All

I am making a custom archive action and for that i have written a javascript action and make all the changes for the action but when i click on my action in document library it doesn't do anything. I think my js action is not registered properly.

Please anyone can help me with this as soon as possible.

Below is my js action.

(function() {"registerAction",{
      actionName: "onActionArchive",
      onActionArchive: function dlA__onActionArchive(record) {
         var fnSuccess = function dlA_onActionArchive_success(p_data) {
            this._inFlight = false;
               text: this.msg("message.archive.success", record.displayName)
            var moved = toMoveRecord.getData();
            if (moved.node.isContainer)
                  multiple: true,
                  nodeRef: moved.nodeRef,
                  destination: path
            success: {
               callback: {
                  fn: fnSuccess,
                  scope: this
            webscript: {
               stem: Alfresco.constants.PROXY_URI,
               method: Alfresco.util.Ajax.GET,
               params: {
                  nodeRef: record.nodeRef
            config: {