As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
doc.properties["my:prop1"] = "new constant value"; doc.properties["my:prop2"] = "new other constant value"'; /* more stuff */ doc.save(); /* to save the properties just set */
var parent = space.name document.properties["cm:author"]= (parent); document.save(); /* to save the properties just set */
This is a big weak spot in Alfresco for us. We need it to be easy for a user (not a programmer) to be able to say, for all files in this entire space/folder set this property to this value. That is, doing mass update without needing to know how to write a script. Is there any way that this can be done?
<config> <actions> <action id="export_pictures"> <permissions> <permission allow="true">Write</permission> </permissions> <label>Exporter vers la photothèque</label> <tooltip>Runs the specified JavaScript</tooltip> <show-link>true</show-link> <style>padding:4px</style> <style-class>inlineAction</style-class> <image>/images/icons/CheckIn_icon.gif</image> <script>/Company Home/Data Dictionary/Scripts/export.js</script> <params> <param name="id">#{actionContext.id}</param> <param name="noderef">#{actionContext.nodeRef}</param> </params> </action> <action-group id="browse_actions_menu"> <action idref="export_pictures" /> </action-group> </actions> </config>
<config> <actions> <action id="deletealbum"> <label>Supprimer un album</label> <image>/images/icons/delete.gif</image> <href>/wcservice/albums/deletealbum</href> <params> <param name="id">#{actionContext.id}</param> <param name="noderef">#{actionContext.nodeRef}</param> </params> <onclick>window.open('/wcservice/albums/deletealbum'); return false;</onclick> <target>/wcservice/albums/deletealbum</target> </action> <action-group id="browse_actions_menu"> <action idref="deletealbum" /> </action-group> </actions> </config>