Hello

I Have been trying to create a new document using Automation
client, I want to assign a title for the document and a
description, I wrote the next code:


request = session.newRequest("Document.Create");
                                                request.setInput(new 
PathRef(rootPath));
                                                request.set("type", 
typeDocument);
                                                request.set("name", 
documentName);
                                                request.set("properties", 
"dc:title=" + documentName
);
request.set("properties", "dc:description="+ rptname);
                                                request.execute(); 

When I don't put the line "request.set("properties",
"dc:description="+ rptname)" the document is created
according to what I specified, so I can go to nuxeo an see
the document with the right name, but when I add that line
of code, the document is created with the right description,
but the name of the file has random numbers and letters.

What I am doing wrong?  

Thanks  
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to