Hello, All! I am trying to acquire an URL from Livelink using the LAPI_DOCUMENTS.GetURLAddress(...) method in JAVA. I am using the return (status) to test if it's equal to '0' as it is. It seems the connection and session object are correct. However, the returning LLValue, which I am expecting to have been populated with a URL is populated with a 'TargetURL=?' instead. The following is the code snippet of what I am doing. I would greatly appreciate if you could please let me know why my LLValue is populated incorrectly, and I am not receiving the URL as I need it.
String livelinkServer = "url";
int livelinkPort = "port";
String livelinkId = "id";
String livelinkPassword = "password";
int livelinkStatus=0;
int volumeId=0;
int objectId= "objId";
LLSession llsession = new LLSession(livelinkServer, livelinkPort, "", livelinkId, livelinkPassword, null);
LAPI_DOCUMENTS lapiDocuments = new LAPI_DOCUMENTS(llsession);
LLValue livelinkValue = new LLValue();
livelinkStatus = lapiDocuments.GetURLAddress(volumeId,objectId,livelinkValue);
if(livelinkStatus==0)
{
System.out.println("'livelinkValue.toString()' is [" + livelinkValue.toString() + "]");
}
Results:
'livelinkValue.toString()' is [?]
Returned LLValue printed:
A<1,?,RESERVED=0,EXTENDEDDATA=?,PERMISSIONS=-1593835521,ASSIGNEDTO=?,CONTAINER=true,CATALOG=0,CREATEDATE=D/2010/8/25:3:32:56,GROUPPERM=12582207,COMMENT=?,MODIFYDATE=D/2014/6/22:1:34:39,CATEGORY=?,STATUS=?,MINOR=?,GIF=?,DATEEFFECTIVE=?,USERPERM=23358191,ORIGINALVOLID=0,WORLDPERM=128,TYPE=?,VERSIONNUM=0,SUBTYPE=0,PRIORITY=?,MAJOR=?,USERID=2833321661,ID=57340237,DATECOMPLETED=?,CHILDCOUNT=23621,CACHEEXPIRATION=0,EXATT2=?,EXATT1=?,ORDERING=?,PARENTID=57882886,PERMID=?,NAME=Scheduled_Reports,CREATEDBY=281223661,SYSTEMPERM=167727215,DATEDUE=?,Milestone=?,DATEEXPIRATION=?,RESERVEDDATE=?,DATESTARTED=?,RESERVEDBY=0,TargetURL=?,DATEASSIGNED=?,ORIGINALID=0,RELEASEREF=?,VOLUMEID=-2000,GROUPID=283660,MAXVERSION=-1>
Thanks a lot!
Best Regards,
Edirim.
String livelinkServer = "url";
int livelinkPort = "port";
String livelinkId = "id";
String livelinkPassword = "password";
int livelinkStatus=0;
int volumeId=0;
int objectId= "objId";
LLSession llsession = new LLSession(livelinkServer, livelinkPort, "", livelinkId, livelinkPassword, null);
LAPI_DOCUMENTS lapiDocuments = new LAPI_DOCUMENTS(llsession);
LLValue livelinkValue = new LLValue();
livelinkStatus = lapiDocuments.GetURLAddress(volumeId,objectId,livelinkValue);
if(livelinkStatus==0)
{
System.out.println("'livelinkValue.toString()' is [" + livelinkValue.toString() + "]");
}
Results:
'livelinkValue.toString()' is [?]
Returned LLValue printed:
A<1,?,RESERVED=0,EXTENDEDDATA=?,PERMISSIONS=-1593835521,ASSIGNEDTO=?,CONTAINER=true,CATALOG=0,CREATEDATE=D/2010/8/25:3:32:56,GROUPPERM=12582207,COMMENT=?,MODIFYDATE=D/2014/6/22:1:34:39,CATEGORY=?,STATUS=?,MINOR=?,GIF=?,DATEEFFECTIVE=?,USERPERM=23358191,ORIGINALVOLID=0,WORLDPERM=128,TYPE=?,VERSIONNUM=0,SUBTYPE=0,PRIORITY=?,MAJOR=?,USERID=2833321661,ID=57340237,DATECOMPLETED=?,CHILDCOUNT=23621,CACHEEXPIRATION=0,EXATT2=?,EXATT1=?,ORDERING=?,PARENTID=57882886,PERMID=?,NAME=Scheduled_Reports,CREATEDBY=281223661,SYSTEMPERM=167727215,DATEDUE=?,Milestone=?,DATEEXPIRATION=?,RESERVEDDATE=?,DATESTARTED=?,RESERVEDBY=0,TargetURL=?,DATEASSIGNED=?,ORIGINALID=0,RELEASEREF=?,VOLUMEID=-2000,GROUPID=283660,MAXVERSION=-1>
Thanks a lot!
Best Regards,
Edirim.