Hi everyone, my name is Mike and this is my first question here...
I'm trying to use the Livelink Search API in Java to search through Livelink and return a list of documents. I create a session, access the enterprise workspace, and I am trying to use the method ApplyQueryRecArray to recursively get the documents under the main node for the workspace. My call to this function is as follows:
if (queryObject.ApplyQueryRecArray(objectID, selectList, where, LAPI_SEARCH.SORTBYNOTHING, "OTName", 0, 1000000, "None", docs) == 0)
{...
Every time I run this I get the following error:
com.opentext.api.LLIllegalOperationException: get(name) not implemented for this datatype
at com.opentext.api.LLInstance.get(LLInstance.java:72)
at com.opentext.api.LLValue.toValue(LLValue.java:691)
at com.opentext.api.LLConnect.unMarshall(LLConnect.java:317)
at com.opentext.api.LAPI_SEARCH.ApplyQueryRecArray(LAPI_SEARCH.java:74)
at LLTest.DLTest.main(DLTest.java:74)
I originally had the parameter "OTName" in the call above to be null, and have also changed it to be "" and "Name", all except null with the same results. When I had null in the call, there was a different error that told me to change that parameter.
I have searched all over the web for a solution. If anyone has any information on how to do this or where I can get more information then I would appreciate that. The Livelink API documentation is proving less than satisfactory.
Thanks!
-Mike
I'm trying to use the Livelink Search API in Java to search through Livelink and return a list of documents. I create a session, access the enterprise workspace, and I am trying to use the method ApplyQueryRecArray to recursively get the documents under the main node for the workspace. My call to this function is as follows:
if (queryObject.ApplyQueryRecArray(objectID, selectList, where, LAPI_SEARCH.SORTBYNOTHING, "OTName", 0, 1000000, "None", docs) == 0)
{...
Every time I run this I get the following error:
com.opentext.api.LLIllegalOperationException: get(name) not implemented for this datatype
at com.opentext.api.LLInstance.get(LLInstance.java:72)
at com.opentext.api.LLValue.toValue(LLValue.java:691)
at com.opentext.api.LLConnect.unMarshall(LLConnect.java:317)
at com.opentext.api.LAPI_SEARCH.ApplyQueryRecArray(LAPI_SEARCH.java:74)
at LLTest.DLTest.main(DLTest.java:74)
I originally had the parameter "OTName" in the call above to be null, and have also changed it to be "" and "Name", all except null with the same results. When I had null in the call, there was a different error that told me to change that parameter.
I have searched all over the web for a solution. If anyone has any information on how to do this or where I can get more information then I would appreciate that. The Livelink API documentation is proving less than satisfactory.
Thanks!
-Mike