cancel
Showing results for 
Search instead for 
Did you mean: 

Problem copy folder

b12jose
Champ in-the-making
Champ in-the-making
Hi all!

I'm trying to copy folders using webservices, but when I explore the
recent copies in Node Explorer the "Child Name" is:

{}FolderName

instead of:

{http://www.alfresco.org/model/content/1.0}FolderName

What's going on?

When I copy the files using the clipboard of the web interface, the
child name is ok, and I can work with other application over the file,
but with the files copied via webservices the other application can't
manage them.

Has anybody any kind of code to do the copy properly?

Thanks in advance!
1 REPLY 1

tim-erwin
Champ in-the-making
Champ in-the-making
Just give it the right name, e.g.:
CMLCopy(PROJECTS, null, Constants.ASSOC_CONTAINS, Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, foldername), where, null, true);
I guess you omitted the NAMESPACE_CONTENT_MODEL constant.

Regards,
Tim-Erwin