Hello,
With the help of different examples I found I'm able to create compounds document and the document underneath with the correct category I want ... excepted user name fields.
Which lead to error "101103" from CreateObjectEx.
To set this field I use:
(...)
LLValue attrValuesb = new LLValue().setList();
attrValuesb.add(args[1]);
if(attr.AttrSetValues(catVersion,"Author",attr.ATTR_DATAVALUES, attrValPath, attrValuesb) != 0)
{
System.out.println("AttrSetValues Failed."); return;
}
(...)
Then there is the call to CreateObjectEx:
status = doc.CreateObjectEx(volumeID,objectID2,LAPI_DOCUMENTS.OBJECTTYPE,LAPI_DOCUMENTS.COMPOUNDDOCUMENTSUBTYPE,"MyOwnCompoundDoc_"+fina,createInfo,objectInfo);
which fails.
I also tried ATTR_TYPE_USER without greater succes. When I set manually an existing user name on web interface it works. When I push the same user name thru the API it does not work.
Maybe I'm missing something, any hint will be appreciated.
Thanks in advance.
With the help of different examples I found I'm able to create compounds document and the document underneath with the correct category I want ... excepted user name fields.
Which lead to error "101103" from CreateObjectEx.
To set this field I use:
(...)
LLValue attrValuesb = new LLValue().setList();
attrValuesb.add(args[1]);
if(attr.AttrSetValues(catVersion,"Author",attr.ATTR_DATAVALUES, attrValPath, attrValuesb) != 0)
{
System.out.println("AttrSetValues Failed."); return;
}
(...)
Then there is the call to CreateObjectEx:
status = doc.CreateObjectEx(volumeID,objectID2,LAPI_DOCUMENTS.OBJECTTYPE,LAPI_DOCUMENTS.COMPOUNDDOCUMENTSUBTYPE,"MyOwnCompoundDoc_"+fina,createInfo,objectInfo);
which fails.
I also tried ATTR_TYPE_USER without greater succes. When I set manually an existing user name on web interface it works. When I push the same user name thru the API it does not work.
Maybe I'm missing something, any hint will be appreciated.
Thanks in advance.