Solved

Search box in Lotus Notes Web application

Posted on 2012-04-13
2
719 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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

9 Experts available now in Live!

Get 1:1 Help Now