Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Java LAPI Working with Categoy Objects not in Category Workspace
x-opconuser3_-_(deleted)
I can access Categories defined in the Category Workspace with the LAPI and assign them to Obects no problem.I can retrieve Categories defined in a Folder with the LAPI_DOCUMENTS.ListObjects() method and checking for SUBTYPE=LAPI_DOCUMENTS.CATEGORYSUBTYPE no problem.When I try the LAPI_DOCUMENTS.FetchCategoryVersion having built a catID holding the ID of the Category in the Folder, I get a return value of 107105 and the LLSession tells me:ApiError=ErrMsg=The version is not found. Status=Error getting the version of this categoryThis functionality works in the HTML GUI.Is this another case where HTML functionlity is not included in the GUI?Thanks,Jon K
Find more posts tagged with
Comments
eLink User
Message from chris meyer via eLinkHi Jon,Let's make sure your catID is constructed properly. Mine is constructed assuch:---int dataID = 12345;int version = 0;LLValue catID = getBlankAssoc();catID.add("ID", dataID);catID.add("Version", version); // 0 assumes the latest versioncatID.add("Type", LAPI_ATTRIBUTES.CATEGORY_TYPE_LIBRARY);---That seems to work for me. Good luck, chris----- Original Message -----From: "eLink Discussion: LAPI Discussion" To: "eLink Recipient" Sent: Tuesday, October 22, 2002 10:40 AMSubject: Java LAPI Working with Categoy Objects not in Category Workspace> Java LAPI Working with Categoy Objects not in Category Workspace> Posted by OpConUser3 on 10/22/2002 04:36 AM>> I can access Categories defined in the Category Workspace with the LAPIand assign them to Obects no problem.>> I can retrieve Categories defined in a Folder with theLAPI_DOCUMENTS.ListObjects() method and checking forSUBTYPE=LAPI_DOCUMENTS.CATEGORYSUBTYPE no problem.>> When I try the LAPI_DOCUMENTS.FetchCategoryVersion having built a catIDholding the ID of the Category in the Folder, I get a return value of 107105and the LLSession tells me:>> ApiError=> ErrMsg=The version is not found.> Status=Error getting the version of this category>> This functionality works in the HTML GUI.>> Is this another case where HTML functionlity is not included in the GUI?>> Thanks,> Jon K>> [To reply to this thread, use your normal e-mail reply function.]>> ============================================================>> Discussion: LAPI Discussion>
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=765428&objAction=view>>
; Livelink Server:>
https://knowledge.opentext.com/knowledge/livelink.exe>>>
;