Solved

Search box in Lotus Notes Web application

Posted on 2012-04-13
2
765 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

688 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