Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update category of an object (after creation of an object)

Status
Not open for further replies.

smallredville

Programmer
Aug 18, 2008
115
SG
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top