cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED]how to set type of folder?

targa2000
Champ in-the-making
Champ in-the-making
How do I set the folder type of a space or folder?  I tried:

folder.type="atdSmiley TonguerojectfolderMigrated";

but get the error:

"org.alfresco.repo.jscript.ScriptNode" has no public instance field or method named "type". (workspace://SpacesStore/b7d41673-39d8-4275-8eca . . . )
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
Try
folder.specializeType("atd:projectfolderMigrated")

Thanks,
Mike

targa2000
Champ in-the-making
Champ in-the-making
Thanks!