AnsweredAssumed Answered

Create Add subCategory

Question asked by kevin-56 on Jun 9, 2008
Latest reply on Sep 2, 2009 by dwilson
Hello,

I try to execute a script to create a sub category under a luceneSearch on the category i want. The name of the category will be the document.name

this is my code :

  
 var category = search.luceneSearch("PATH:\"cm:generalclassifiable/cm:UBGDS//cm:BOVIN\" ");
    var docName = new String(document.properties.name);
    cat.createSubCategory(docName);
I have this error : TypeError: Cannot find function createSubCategory.
What's wrong ?

Sorry for my english
Thanks

Outcomes