05-31-2017 05:56 AM
Dear All,
Managed to create a script which is executed on a folder level. Basically, the script takes the custom properties of the selected folder and updates all the child objects with the property values.
Currently the use is obliged to use the Run Action DocLib action and select the right JS file. I would like to simplify this to create a DocLib action displayed in folder-details and folder-browe views.
Added the following code to the share-config-custom.xml
<config evaluator="string-compare" condition="DocLibActions">
<actions>
<action id="updatedocuments" type="javascript" label="Update" icon="folder-move-to">
<param name="function">onActionUpdateDocuments</param>
</action>
</actions>
<actionGroups>
<actionGroup id="folder-browse">
<action index="500" id="updatedocuments" />
</actionGroup>
<actionGroup id="folder-details">
<action index="500" id="updatedocuments" />
</actionGroup>
</actionGroups>
</config>
Thanks alot for your help,
Zsolt Putnoky
06-06-2017 12:41 AM
!! SOLVED !!
Dear All,
We solved the above question by following the discussion in the following thread:
https://community.alfresco.com/thread/205795-custom-action-using-server-side-javascript
Zsolt Putnoky
Explore our Alfresco products with the links below. Use labels to filter content by product module.