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
!! 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
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.