Solved

Search box in Lotus Notes Web application

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

20 Experts available now in Live!

Get 1:1 Help Now