Solved

Search box in Lotus Notes Web application

Posted on 2012-04-13
2
735 Views
Last Modified: 2013-12-18
Our workplace has a Lotus Notes Web application and we would like to add a search box where we can type a word and it will search through 5 fields in the form and show the result on the web browser. Can we have some pointers on how to do this?
0
Comment
Question by:coronoahcoro
2 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 37843641
What do you want: do you want to search documents in the database, or do you want to search a text in one of those 5 fields?

If #1: create a simple form that you display in a browser window, with 5 fields. The user can fill in those fields, and when you Submit the form you run a WebQuerySave agent that searches the database.

More info in the Designer Help database, and here:
- http://www-10.lotus.com/ldd/ddwiki.nsf/dx/BestPracticesWebAppDevDomino8.pdf/$file/BestPracticesWebAppDevDomino8.pdf
0
 
LVL 13

Accepted Solution

by:
JonNorman earned 500 total points
ID: 37892401
Create a view that has the documents that you want to search in it. e.g. name the view SearchView.
Create a form named "$$SearchTemplate for <ViewName>" where <ViewName> is the name of the view you want to search. e.g. name the form "$$SearchTemplate for SearchView". This form must have an embedded view on it or a field named $$viewbody.
Test this by going to the url http://<server>/<path>/<db>.nsf/<viewname>?SearchView&Query=<query> . replace the bits in <> with your values, <query> is what you are looking for e.g. http://myserver/mydb.nsf/serchview?SearchView&Query=hello
Now you need to decide whether they need to be able to search all the five fields at once or if searching for anything is acceptable. If they must search all 5 fields at the same time, but not any other fields on the documents then write an agent to combine all 5 fields into a new field.
The url for searching within a field for documents in a view is:
http://myserver/mydb.nsf/serchview?SearchView&Query=[fieldname]=hello
You now need to write some html with a form and field that when submitted will send the user to that url with hello replaced with their query.

Godd Luck!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now