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
Can't See contents of Projects using LAPI
Glenn_Witerski_(GWiterski_(Delete)_1047666)
I have recently completed a VB application that is used to bulk load files from a users local or network drive to Livelink. The user selects drive, directory and 1 or more files to load. The app has a list box that is populated using the ListOBjects LAPI call. The Listobjects call iterates the object tree examining objects it finds. Here is my problem ---- The LAPI call can see a Project object but when i pass the object id of the project to ListObjects function it always comes back empty, and the return value from the function is LL_OK. Anyone know why the ListObjects does not return the contents/children for a project ??glenn witerski
Find more posts tagged with
Comments
Jason_Cassidy_(jcassidy_(Delete)_1082840)
Each project has an associated Project Volume. This is where the child objects are stored. When using a function such as ListObjects DO NOT pass in the VolID/NodeID for the project. This would only yield the sub-projects. Instead call the function using...VolumeID = ProjectNodeIDNodeID = -ProjectNodeIDThese are the id's for the ProjectVolume.For example: A project in Livelink has VolumeID = -2000, NodeID = 23456. To list this project's children call... LL_ListObjects( session, 23456, -23456, ... );Cheers, Jason
Tim_Swayn
I had this same problem - thanks.My question is where can I find the doc on this? I have, I believe, the most up to date 8.1.5 doc and the ListObjects section says nothing of this!To continue my rant a bit, I noticed the CreateObjectEx method (I use the Java interface) indicates the additional information needed in order to create certain objects. To create a URL, for example, you need to specify the "TargetURL" property. Great. What call do I make if I want to RETRIEVE this information? I would expect it to be via GetObjectInfo() but based on the doc, this doesn't appear to be the case. The GetObjectInfo call only retrieves generic object information, not object specific stuff.
eLink User
Message from Jeremy O'Connor via eLinkThe targetURL parameter is not only a URL to objects in Livelink, this URLis any valid internet URL (eg. www.opentext.com). You will need to knowthis URL beforehand and there is no function to return the URL of an objectin Livelink.-----Original Message-----From: eLink Discussion: LAPI Discussion[mailto:lapi@elinkkc.opentext.com]Sent: Wednesday, October 18, 2000 6:26 PMTo: eLink RecipientSubject: And where's the doc...And where's the doc...Posted by SHELLCaAdmin on 10/18/2000 06:21 PMI had this same problem - thanks.My question is where can I find the doc on this? I have, I believe, themost up to date 8.1.5 doc and the ListObjects section says nothing of this!To continue my rant a bit, I noticed the CreateObjectEx method (I use theJava interface) indicates the additional information needed in order tocreate certain objects. To create a URL, for example, you need to specifythe "TargetURL" property. Great. What call do I make if I want to RETRIEVEthis information? I would expect it to be via GetObjectInfo() but based onthe doc, this doesn't appear to be the case. The GetObjectInfo call onlyretrieves generic object information, not object specific stuff.[To reply to this thread, use your normal e-mail reply function.]============================================================Topic: Can't See contents of Projects using LAPI
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=2175639&objAction=viewDiscussion
: LAPI Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=765428&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe
Bob_DeGarmo_(WorldWideTechUser1_(Delete)_1437172)
Tim << or whoever >>,Take a look at the GetURLAddress function. I believe that will return the TargetURL of a URL object.I'm not much of a Java guy, but I have had the misfortune to have worked with its Livelink API some, and understand the differences you may have to deal with... If GetURLAddress is not available, look more at the ListObjects function... In the 4th argument ('viewName'), you can specify a Database View from which to retrieve the info. I belive you can probably get away with simply specifying 'dtree' here to retrieve all the columns of the table. It looks like the targetURL is stored in the 'ExAtt1' attribute. If 'dtree' doesn't work, you can create a LiveReport that modifies Database Schema to create a view. i.e., View Name: 'AllDtree' SQL: 'Create view AllDtree as select * from dtree' Then use 'AllDtree' for the viewName argument in ListObjects.Hope that helps...-Bob
Tim_Swayn
I didn't mean to mislead anyone with the TargetURL thing. This is only an example of getting additional info on an object and I chose URL because its relatively simple.What I was trying to explain...If you take a look at the CreateObjectEx() method, you'll notice there is additional information required on each type of object: Channel needs IMG_ID and Comment, Compound Doc has Comment, Project has a whole bunch of stuff, etc. The point I was trying to make was how do I retrieve this object specific information. I see that Bob DeGarmo in the other reply to this posting has told me to investigate the ListObjects method more which I will do. I guess I'm a bit surprised that getting this type of information is so difficult. I would have thought that once you retrieved an object, you should be presented with all its attributes and shouldn't need to go hunting for more.David