AnsweredAssumed Answered

Updating document metadata using javascript

Question asked by sanket on Oct 4, 2011
Latest reply on Oct 5, 2011 by sanket
Hi Guise,
             I have the nodeRef of a document (lying at a fixed location under Company Home). I just want to change the title or description property of that file using javascript.

But I want to update the file from createcomment.js file.
I have also put my custom method in createcomment.js file ->

 updateFileAfterCommentPost : function commentPost(docNodeRef){
                     //var title=;


How can I use alfresco stuff like the following in my createcomment.js file to update any file?
-> search.findNode(destination);
-> node.addAspect("cm:versionable", props);
-> = title;

Thanks and Regards,
Sanket Mehta.