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!

Creating a Search in HTML for Livelink

Status
Not open for further replies.

msbutton27

IS-IT--Management
Oct 16, 2006
3
CA
Hey all,

Got a problem and not sure if I can get the answer here or if in general. I am fairly new to Livelink and it's complete functionality but here is what I am trying to do.

I have a parent directory with a series of products below that, each one of the products contain various folders. In my customview.html file at the parent level I was to create a javascript based form that will

Allow me to type in the text I want to search for, a drop down menu that will allow me to select the product (Or all), and then another dropdown menu to select another criteria of the product.

This way I can limit or expand my key word(s) searches based on the criteria in the dropdown menu.

Therefore here are my questions:
1. Can this be done - rather than setting up personal search templates, I need this viewable by all.
2. What do I need to do rather than having users use the standard search tool on the top of livelink

Livelink Version 9.1.0.3.90
 
Have a look at livelink searchxmlapi and this thread
it is very powerfule and I think you will benefit from it

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
I looked at the link you provided, it was a great starting point, but I here is my problem:

I have directory structure that looks like this:

PARENT FOLDER
-----------------------------|-------------------------
| | | |
PROD1 PROD2 PROD3 PROD4
| | | |
------- ------- ------- ----
| | | | | | | | | | | | | |
1 2 3 4 1 2 3 4 1 2 3 4 1 2



In my parent window I want to create something that will allow me to search the patch PROD1/4 or ALL/3 or PROD1&PROD2/2

Any idea of setting that up - the only way i see now, being experiened to this is to, create a search file (like you provided) and put it in each folder and then link to it from the main page - any other suggestions - anyone ????

...Mike
 
Have done so more digging on this and found that the script provided will give me a search from the low level of Livelink - i modified the "SCOPE" to include a couple of Folders for the OBJECTID's that I wanted to search only.

When I performed a search I still received data from the lowest level of Livelink and nothign specific to my folders.

So the question now is - with this script, which is AWESOME, how do I add other folders into the SCOPE and remove the default....

Here is what it looks like now....

<SELECT CLASS="" MULTIPLE NAME="broker" SIZE="4">
<OPTION VALUE="123550">Admin HelpsearchBut
<OPTION VALUE="128605">Builder Documentation
<OPTION SELECTED VALUE="2245">Enterprise
<OPTION VALUE="2249">Enterprise [All Versions]
<OPTION VALUE="133788">Help
</SELECT>

This is what I am trying to do in my tool:

<SELECT CLASS="searchBut" MULTIPLE NAME="broker" SIZE="4">
<OPTION VALUE="1111111">Prod1
<OPTION VALUE="2222222">Prod2
<OPTION SELECTED VALUE="3333333">Prod3
<OPTION VALUE="44444444">Prod1-folder2
<OPTION VALUE="555555555">Prod1-folder1
</SELECT>

 
I did something similar based on the earlier faq
Code:
Assume your ObjID in Livelink for a folder is 2020708 so that is where you want the search done
I go to the search bar and I type "onshore" I want anything that has onshore in them 

Livelink throws you a bunch of results.
Here's how you would do the same thru search xmlapi

[URL unfurl="true"]http://<ypour[/URL] ivelink>/llisapi.dll?func=search&lookfor1=complexquery&where1=("OTLocation":"2020708")&where2=onshore&boolean2=and


Please note or check with your sysadmin whether OTLocation is defined in the searchable regions,it should be by default

The way I did this was thru a html form and having hidden controls .The trick is for the form to do the quotes because the quotes are very important and also the syntax here it is saying lookin 2020708 for onshore that is where I went wrong I thought the where<n> need not be in any particular order,well it has to be there is a lot of info on that document

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