AnsweredAssumed Answered

document.properties = null

Question asked by pigtaro on Feb 21, 2009
Latest reply on Feb 26, 2009 by pigtaro
Hi All,

This is my first post. I am trying to add category to a new document. From the web, i got the following code:


var catNodeRef = search.luceneSearch("…");
var cats = document.properties["cm:classifiable"];
cats.push(catNodeRef);

I keep getting null error. After turning on the Alfresco Javascript debugger, i discovered that document.properties is null. Been searching for the web ever since, but unable to get answer. How do i instantiate the properties attributes in the document?

regards,
Steven

Outcomes