smallredville
Programmer
Hi All,
I intend to update the category of a object in livelink but to no avail.
I used something like :
...
categoryInfo.add("Categories", categories);
if (doc.UpdateObjectInfo(uploadto_volumeID, objectInfo.toInteger("ID"), categoryInfo) == 0) {
System.out.println("\n\n successful UpdateObjectInfo -- category \n\n");
}//end if
else{
System.out.println("\n\n NOT successful UpdateObjectInfo category \n\n");
String sessionError = "+++ Start of session errors +++\n";
sessionError += "Status Code: " + GlobalVariables.session.getStatus() + "\n";
sessionError += "Api Error: " + GlobalVariables.session.getApiError() + "\n";
sessionError += "Error Message: " + GlobalVariables.session.getErrMsg() + "\n";
sessionError += "Status Message: " + GlobalVariables.session.getStatusMessage() + "\n";
System.out.println(sessionError);
}//end else
...
But even though, the above execution goes smoothly, the category of an object is not updated at all.
I found a post by Appnair - on how to add category during the creation of an object (CreateObjectEx).
I am wondering is there any LAPI method to update the category of an existing object?
Thank you,
smallredville
I intend to update the category of a object in livelink but to no avail.
I used something like :
...
categoryInfo.add("Categories", categories);
if (doc.UpdateObjectInfo(uploadto_volumeID, objectInfo.toInteger("ID"), categoryInfo) == 0) {
System.out.println("\n\n successful UpdateObjectInfo -- category \n\n");
}//end if
else{
System.out.println("\n\n NOT successful UpdateObjectInfo category \n\n");
String sessionError = "+++ Start of session errors +++\n";
sessionError += "Status Code: " + GlobalVariables.session.getStatus() + "\n";
sessionError += "Api Error: " + GlobalVariables.session.getApiError() + "\n";
sessionError += "Error Message: " + GlobalVariables.session.getErrMsg() + "\n";
sessionError += "Status Message: " + GlobalVariables.session.getStatusMessage() + "\n";
System.out.println(sessionError);
}//end else
...
But even though, the above execution goes smoothly, the category of an object is not updated at all.
I found a post by Appnair - on how to add category during the creation of an object (CreateObjectEx).
I am wondering is there any LAPI method to update the category of an existing object?
Thank you,
smallredville