cancel
Showing results for 
Search instead for 
Did you mean: 

Create Add subCategory

kevin-56
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

dwilson
Champ in-the-making
Champ in-the-making
Is that your actual code?  You initialized a variable called "category" then call just "cat." later…