Hi,
I am using LAPI 9.7.1 api for accessing OpenText Content Server 10.
I want to fetch the categories present in Enterprise worksapce and using below mentioned code for it -
LLValue mWorkspaceInfo = (new LLValue()).setAssocNotSet();
int iVolumeID = mWorkspaceInfo.toInteger("VolumeID");
int iobjID = mWorkspaceInfo.toInteger("ID");
LLValue children = (new LLValue()).setTable();
mLogger.Debug("Fetching all categories from the workspace");
if (mDocuments.ListObjects(iVolumeID, iobjID, "DTREE", "SUBTYPE = " + LAPI_DOCUMENTS.CATEGORYSUBTYPE, LAPI_DOCUMENTS.PERM_FULL, children) != 0)
{
Exception e = new Exception("CONNECTIONNOTOPEN");
throw e;
}
It is giving me this exception - com.opentext.api.LLIllegalOperationException “toInteger() not implemented for this datatype”
But when I replace DTREE parameter with null , it works fine.
Can anyone help me please.
Thanks
I am using LAPI 9.7.1 api for accessing OpenText Content Server 10.
I want to fetch the categories present in Enterprise worksapce and using below mentioned code for it -
LLValue mWorkspaceInfo = (new LLValue()).setAssocNotSet();
int iVolumeID = mWorkspaceInfo.toInteger("VolumeID");
int iobjID = mWorkspaceInfo.toInteger("ID");
LLValue children = (new LLValue()).setTable();
mLogger.Debug("Fetching all categories from the workspace");
if (mDocuments.ListObjects(iVolumeID, iobjID, "DTREE", "SUBTYPE = " + LAPI_DOCUMENTS.CATEGORYSUBTYPE, LAPI_DOCUMENTS.PERM_FULL, children) != 0)
{
Exception e = new Exception("CONNECTIONNOTOPEN");
throw e;
}
It is giving me this exception - com.opentext.api.LLIllegalOperationException “toInteger() not implemented for this datatype”
But when I replace DTREE parameter with null , it works fine.
Can anyone help me please.
Thanks