03-29-2019 05:46 AM
Hi ! Nobody has a JavaScript to add or remove an aspect (appl: inlineeditable )
to documents that are already imported into the repository.
I am very annoyed, I should have included this aspect in the rule before import.
Can you help me please?
Thanks
Léon TSATY
03-29-2019 05:51 AM
You can create your own script for that:
1. search for the documents that needs to be updated using "search" root object.
2. Iterate the result script nodes and add your aspect with required properties using "node.addAspect(...)"
OR
create a rule that applies to your specific type, apply the rule on the root folder then add a script for adding aspect using "document.addAspect(..)"
Look in documentation on help regarding JS root objects and useful methods.
The javascirpt console would be a helpful in writing the scipt.
03-29-2019 06:46 AM
Hello
I can not create my own script because I do not know the javascript development language
I am a beginner on alfresco. So creating scripts is too sophisticated for me
Thanks
Explore our Alfresco products with the links below. Use labels to filter content by product module.