This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model.actionSet.push( | |
{ | |
className: "onActionComplete", | |
type: "action-link", | |
permission: "edit", | |
href: "", | |
func: "MyCustomAction", | |
label: "actions.document.simple-approve" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model.actionSet.push( | |
{ | |
className: "onActionPermissions", | |
type: "action-link", | |
permission: "edit", | |
href: "manage-permissions?nodeRef=", | |
func: "", | |
label: "actions.document.manage-permissions" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<extension> | |
<modules> | |
<module> | |
<id>My Datagrid Actions</id> | |
<customizations> | |
<customization> | |
<targetPackageRoot>documents-registers</targetPackageRoot> | |
<sourcePackageRoot>custom.documents-registers</sourcePackageRoot> | |
</customization> | |
</customizations> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<config> | |
<forms> | |
<dependencies> | |
<js src="/components/custom/custom-datagrid-renderers.js" /> | |
</dependencies> | |
</forms> | |
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyCustomRenderer = function (elCell, oRecord, oColumn, oData) | |
{ | |
oData = oRecord.getData("itemData")[oColumn.field]; | |
if( !oData ) | |
return; | |
if( oData.value >= 10 ) | |
elCell.innerHTML = "<strong>" + oData.displayValue + "</strong>"; | |
else | |
elCell.innerHTML = oData.displayValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<extensionElements> | |
<activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"> | |
<activiti:field name="script"> | |
<activiti:string> | |
var documents = execution.getVariable('alvexdocreg20_documents'); | |
logger.log("Documents count: " + documents.size()); | |
for(var i = 0; i < documents.size(); i++) | |
{ | |
var node = documents.get(i); | |
logger.log( "Processing document ID: " + node.properties["alvexdt:id"] ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var choice = task.getVariableLocal('example_my-long-outcome-property-name'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var choice = task.getVariableLocal('example_myLongOutcomePropertyName'); |