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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search Using "Within Enterprise" as scope with LAPI 2

Status
Not open for further replies.

hatnscarf

Programmer
Feb 20, 2008
5
US
Hi,
I'm using LAPI to search files, my problem is that I can't find the broker/scope "Within enterprise" when i use the GetSearchBrokers function (i only find Enterprise, Enterprise [All versions], Help), this scope can be found in "refine query" or "From here (Expanded)" with the livelink GUI.

I would like to know if it's possible to search with the API using this "Within enterprise" scope.

Thanks
 
See this thread


Within <containername> is the translated or friendly name of the container.Within enterpise means that you are saying I want my search done on the enterprise work space object.To understand this a little better,find a folder somewhere in liveleink and click From Here Expanded.It will take you to adv search screen with within <that folder name>.If you then view source you will see that thw within is replaced by a OTDataID.


Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
All you need to do, and Livelink does this under the covers as well, is to add the location to the query to make it from here down to what ever the user search es on...

"OTLocation":"12037"

The "Within enterprise" is just taking the name of the folder.

 
Thank a lot I just added OTLocation : 2000 to the where field.
And it works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top