 
					
				
		
01-30-2014 10:52 PM
(function() {
   YAHOO.Bubbling.fire("registerAction",{
      actionName: "onActionArchive",
      onActionArchive: function dlA__onActionArchive(record) {
         var fnSuccess = function dlA_onActionArchive_success(p_data) {
            this._inFlight = false;
            Alfresco.util.PopupManager.displayMessage({
               text: this.msg("message.archive.success", record.displayName)
            });
            this._updateDocList.call(this);
            
            
            
            var moved = toMoveRecord.getData();
            if (moved.node.isContainer)
               {
               YAHOO.Bubbling.fire("folderMoved",
               {
                  multiple: true,
                  nodeRef: moved.nodeRef,
                  destination: path
               });      
               }
            YAHOO.Bubbling.fire("metadataRefresh");
         };
         
         this.modules.actions.genricAction({
            success: {
               callback: {
                  fn: fnSuccess,
                  scope: this
               }
            },
            webscript: {
               name:"slingshot/archive?nodeRef={nodeRef}",
               stem: Alfresco.constants.PROXY_URI,
               method: Alfresco.util.Ajax.GET,
               params: {
                  nodeRef: record.nodeRef
               }
            },
            config: {
               }
            });
         }
      });
   })();
   
 
					
				
		
01-31-2014 01:06 AM
YAHOO.Bubbling.fire("registerAction", {
    actionName: "onActionArchive",
    fn: function custom_onActionArchive(asset) 
    {
      //Your custom code
      
    }
});
 
					
				
		
02-02-2014 11:04 PM
<action id="document-archive" type="javascript" label="actions.document.archive">
            <param name="function">onActionArchive</param>
            <param name="successMessage">message.archive.success</param>
          <param name="failureMessage">message.archive.failure</param>
             <permissions>
               <permission allow="true">Delete</permission>
            </permissions>
            <evaluator negate="true">evaluator.doclib.action.isLocked</evaluator>
         </action>
actions.document.archive = Archive
message.archive.success  = '{0}' successfully archived
message.archive.failure = couldn't archive '{0}'
<bean id="Archive" class="org.alfresco.repo.web.scripts.action.ArchiveWebscript" parent="webscript">
       <property name="nodeService" ref="NodeService"/>
        <property name="repository" ref="repositoryHelper"/>
        <property name="fileFolderService" ref="FileFolderService"/>
        <property name="permissionService" ref="PermissionService"/>
      </bean>
<webscript>
<shortname>archive</shortname>
<description> Archive Action</description>
<url>/slingshot/archive?nodeRef={node}</url>
<format default="html"/>
<authenticatoin>user</authenticatoin>
</webscript>
 
					
				
		
02-04-2014 12:04 AM
 
<config evaluator="string-compare" condition="DocLibCustom" replace="true">
   <dependencies>        
      <js src="/components/extension/documentlibrary/yourCustomFile.js" />
    </dependencies>
</config>
 
					
				
		
02-04-2014 10:35 PM
<config evaluator="string-compare" condition="DocLibCustom">
      <!–
         Custom Code dependencies.
         Note: files specified in the "src" attribute resolve relative to the /share/res/ servlet context.
         <dependencies>
            <css src="my-custom-action.css" />
            <js src="my-custom-action.js" />
         </dependencies>
      –>
       <dependencies>
      <js src="/components/documentlibrary/archive.js"/>
      </dependencies>  
   </config>
 
					
				
		
02-05-2014 12:07 AM
YAHOO.Bubbling.fire("registerAction", {
    actionName: "onActionArchive",
    fn: function custom_onActionArchive(asset) 
    {
      //Your custom code
 
    }
});
 
					
				
		
02-05-2014 12:18 AM
 
					
				
		
02-05-2014 02:40 AM
 
					
				
		
02-05-2014 04:25 AM
 
					
				
		
02-05-2014 05:10 AM
 
					
				
				
			
		
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.