?
Solved

Search box in Lotus Notes Web application

Posted on 2012-04-13
2
Medium Priority
?
804 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

765 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