cancel
Showing results for 
Search instead for 
Did you mean: 

How to get rid of the last category

garyd
Champ in-the-making
Champ in-the-making
I use setCategories to add and remove categories from content nodes.  The question is this.  If I want to remove ALL categories from a content node what to I pass for the "AppliedCategory[] categories" parameter when calling the setCategories method?  Null doesn't seem to work.  zero lenght array doesn't work.

Thanks for any help

gary
2 REPLIES 2

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Im not sure there is a way to use the method you describe to clear the category values from a node.

Could you raise this as JIRA issue (http://issues.alfresco.com) and it will be addresses in due course.

Thanks,
Roy

vnma
Champ in-the-making
Champ in-the-making
I'm working with alfresco Community Network - v2.1.0 and getting the same problems.
How to solve or workaround this?