AnsweredAssumed Answered

Change node properties via Javascript

Question asked by streamfan on Sep 14, 2010
Latest reply on Sep 17, 2010 by hsohaib
I am trying to create a javascript to change a property.

I have tried

doc.removeAspect("cm:subject");
doc.addAspect("cm:subject");

also tried

doc.properties["cm:subject"]="newitem"

Where doc is a document from a lucene search.

How can I change a property using Javascript.

Outcomes