<action id="clip_assoc">
<evaluator>com.queres.web.action.evaluator.AssociationEvaluator</evaluator>
<label-id>actions.clip.label</label-id>
<tooltip>actions.clip.tooltip</tooltip>
<image>/images/icons/add_attachment.gif</image>
<onclick>
var oLaunchElement = this;
var callback = {
success: function (o) {
var script, head, infoMgr;
if (document.getElementById('clip_assocs_js' ) === null){
head = document.getElementsByTagName('head').item(0);
script = document.createElement('script');
script.text = o.responseText;
script.type = 'text/javascript';
script.id='clip_assocs_js';
head.appendChild(script);
}
infoMgr = new Queres.PanelManager('NodeInfoBean.sendNodeInfo','noderef', 'extension/node_assoc_panel.ftl');
infoMgr.toggle('#{r.nodeRef}',o.argument.launchElement);
},
failure: function(o) {
alert('FAILURE');
},
argument : {
launchElement : oLaunchElement
},
cache : false
};
YAHOO.util.Connect.asyncRequest('GET', '/alfresco/scripts/clip.js',callback, null);
</onclick>
</action>
<action-group id="document_browse" replace="true">
<action idref="clip_assoc"/>
</action-group>
<config>
<actions>
<action id="crear_expediente_btn">
<label>Crear Expediente</label>
<image>/images/icons/add.gif</image>
<action-listener>#{CrearExpediente.crearExp}</action-listener>
<action>[Outcome]</action>
<params>
<param name="noderef">#{actionContext.nodeRef}</param>
<param name="id">#{actionContext.id}</param>
</params>
</action>
<action-group id="space_browse_menu">
<action idref="crear_expediente_btn" />
</action-group>
<action-group id="space_details_actions">
<action idref="crear_expediente_btn" />
</action-group>
<action-group id="browse_actions_menu">
<action idref="crear_expediente_btn" />
</action-group>
</actions>
</config>
donde CrearExpediente es el nombre de la clase y crearExp el nombre del método.Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.