Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading LiveLink taxomomy through HTTP API?

Status
Not open for further replies.

hrtwit

Technical User
Mar 4, 2008
4
NL
Hello,

I'm new to LiveLink, but am working on development of a web application that needs to retrieve a list of docs from a LiveLink repository.

We have a folder tree in LiveLink, with a folder created for each user of our web application - like so

home-folder
- bob.smith
- jane.brooks
- fred.green
- barney.brown
- jake.howard

Permissions are configured in LiveLink such that each folder is visible to the associated user (and admins) only.

When a user logs into our web application, we want to locate the user's folder within the tree, and then retrieve a list of the documents it contains - preferably returning results as XML (so that we can transform using XSLT). We know the LiveLink ObjectID of the home folder (which is static), but need to locate the user's folder dynamically at runtime based on user id.

OpenText have provide documentation of the LiveLink HTTP Search API, though Í'm struggling to see how I would apply that to address this requirement.

Any steer from experienced members appreciated. I'm pretty sure that I'm over-complicating the solution!

Lee.
 
The http searchAPI or we used to know it as the searchXML API is basically livelink search results exposed as XML results.The submission is thru a form or thru programming methods.The guide gives you a lot of examples.
was probably written by David Templeton,the livelink search Guru,I am not sure)

On a nut shell livelink search is very powerful and it has got its own query language.Basically one has to get to a livelink server and create a where clause correctly to get it working.

Start with understanding livelink thru the GUI interface trying on advanced search queries,you can set a filter in livelink that gives you only folder obejcts form a defined scope.

Using searchXMLAPI I did a XSLT that was somewhat similar to your need.My requirements was to search from a folder down and expose some stuff down the line.I can try to loacte that but it was a form based submission to alivelink server and then it had some aestehically appeling results.



Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Thanks appnair - would really appreciate if you were indeed able to dig out the code that you refer to, as this sounds very similar to what I'm trying to do.

Having played with the LiveLink Advanced Search through the Web GUI, I had a couple of further questions:

1. Does the HTTP Search API support searching on system attributes (i.e. folder names in my case)?

2. How do you restrict the scope of a search to the subtree under a specific folder (i.e. the home folder in my scenario)?

Cheers.
 
. Does the HTTP Search API support searching on system attributes (i.e. folder names in my case)?
In this case you will need to go to an advanced search screen,throw system attributes on the search widget screen,pick folders(region in LQL is OTSubType folder

2. How do you restrict the scope of a search to the subtree under a specific folder (i.e. the home folder in my scenario)?
You wil throw the Browse livelink wideget on the advanced search screen and do this(LQL will OTLOcation


Let me see if I can find that file

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Thanks - in case it's significant pls not that I working against a LiveLink v9.1.0 repository.
 
Hi Hrtwi,
I put the files with some hastily thrown documentation at this link
It is a free livelink site hosted by OpenText where you can find lots of good information.It will require you todo a self registration.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
That terrific appnair. Think that I've almost been able to pull together a complete solution!

One final question - what is the numeric constant value for the OTSubType "folder"? I know that documents are 144, but don't have a complete list for the other types.

Cheers - you've been a star!
 
folder is 0 doc 144,1 alias for a full listing of subtypes see and book mark the venerable Greg's website


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top