Newbie question:
I'm using version of Aflresco Community - 5.2.0 (r135134-b14)
I'm custmizing page of the document-details.
I would like to use categoryService in rule definition, but I do not know how to realize it.
ex)
NodeRef newCategory = categoryService.createCategory(yearsCategory, "1901");
As far as I know ,can do with Alfresco Share Javascript API.
How do I use ?
Please how should I solve this problem?
Thanks in advanced.
Hi Yoshida,
I think you can try Alfresco JavaScript Classification API
And there is a method called createSubCategory
Only one thing, you'll have to know the category NodeRef before you write your scripts.
Example code:
var category = classification.getCategory(nodeRef);
if (category !== null)
{
category.createSubCategory(name);
}
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.