05-13-2013 09:59 AM
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="document-archive" type="javascript" label="actions.<myCompany>.archive">
<param name="function">onActionArchive</param>
<param name="successMessage">message.archive.success</param>
<param name="failureMessage">message.archive.failure</param>
<evaluator negate="true">evaluator.doclib.action.isLocked</evaluator>
</action>
<action id="document-execute-script" type="javascript" label="actions.document.archive.by.script"></action>
</actions>
<actionGroups>
<actionGroup id="document-browse">
<action index="264" id="document-archive"/>
<action index="266" id="document-execute-script"/>
</actionGroup>
</actionGroups>
</config>
<config evaluator="string-compare" condition="DocLibCustom">
<dependencies>
<!– <css src="my-custom-action.css" /> –>
<js src="components/documentlibrary/archive.js"/>
</dependencies>
<dependencies/>
</config>
<bean id="archive" class="org.alfresco.module.<myCompanyAmp>.ArchiveActionExecuter" parent="action-executer">
<property name="serviceRegistry">
<ref bean="ServiceRegistry"/>
</property>
<property name="repository">
<ref bean="repositoryHelper"/>
</property>
</bean>
var archiveAction = actions.create("archive");
archiveAction.execute(document);
(function() {
YAHOO.Bubbling.fire("registerAction",
{
actionName: "onActionArchive",
fn: function <myCompany>_onActionArchive(file) {
var archiveAction = actions.create("archive");
archiveAction.execute(document);
}
});
})();
05-19-2013 10:37 AM
05-21-2013 02:44 AM
05-21-2013 11:08 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.