01-20-2010 08:21 AM
01-20-2010 01:19 PM
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 */
This will perform the change to the metadata.02-04-2010 04:47 PM
02-05-2010 11:01 AM
var parent = space.name
document.properties["cm:author"]= (parent);
document.save(); /* to save the properties just set */
hope this helps someone else…
04-08-2010 01:09 PM
04-08-2010 02:02 PM
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?
04-08-2010 02:10 PM
<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>
04-12-2010 03:00 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.