I would like to be able to add both a comment and to set a spcific mime.type to to a specific version of a document created using CreateVersion.
I am using the following in Java with no compilation errors but critically no comment or mime type setting !:
....
// log the fac that the holder was created successfully
logger.info("Document Object Created...");
// create the output variable verInfo, which
// will contain the version's information
// such as a comment and a specific mime type
LLValue verInfo = (new LLValue()).setAssocNotSet();
LLValue docversion = (new LLValue()).setAssocNotSet();
// add a comment
docversion.add("Comment","LAPI added comment");
// and set a specific mime type
docversion.add("MimeType", "application/msword");
// now add the version info
verInfo.add("request", docversion);
// log what's being uploaded
logger.info("File to upload is " + filesource);
// create the version using the additional info
if (doc.CreateVersion(volumeID, dataID, filesource, verInfo) != 0) {.......
Clearly I am doing something wrong but cannot see what so hoping someone can help.
Steven
I am using the following in Java with no compilation errors but critically no comment or mime type setting !:
....
// log the fac that the holder was created successfully
logger.info("Document Object Created...");
// create the output variable verInfo, which
// will contain the version's information
// such as a comment and a specific mime type
LLValue verInfo = (new LLValue()).setAssocNotSet();
LLValue docversion = (new LLValue()).setAssocNotSet();
// add a comment
docversion.add("Comment","LAPI added comment");
// and set a specific mime type
docversion.add("MimeType", "application/msword");
// now add the version info
verInfo.add("request", docversion);
// log what's being uploaded
logger.info("File to upload is " + filesource);
// create the version using the additional info
if (doc.CreateVersion(volumeID, dataID, filesource, verInfo) != 0) {.......
Clearly I am doing something wrong but cannot see what so hoping someone can help.
Steven