Lotus Note Search in view

Posted on 2000-04-28
Last Modified: 2013-12-18
Under Domino r5 I'm trying to setup a form that has an embeded view to display in a browser. No problem so far. What I'm having trouble with is adding the search capability. I want to add a search field with a search button on the form above the embeded view. When the user types into the field the words to search on, and pressing the button the page will display the results on in the same view format.

- I have already create a viewtemplate and a searchtemplate to match.
- I add some pass-thru html to include a form and input field and a submit button. Here is a snipit:

<TR VALIGN=top><TD WIDTH="80%" COLSPAN=2><IMG SRC="/download.nsf/4b1cbf1bfffeee3885256525004b11c9/$Body/0.3D16?OpenElement&FieldElemFormat=gif" WIDTH=10 HEIGHT=10><FORM METHOD="POST" ACTION="/download.nsf/$$SearchTemplate+for+Download+File+2?SearchView">
<font size =-1>

<table cellspacing=0 cellpadding=2 border=0 noshade>
<tr><td align=left valign=center><font face="Sans-Serif" size =-1>
       Search for
</td><td align=left valign=top colspan=2><font face="Sans-Serif" size =-1>
      <input name="Query" size = 45 VALUE="">
      <input type="submit" value = "Search">

<!--spacer--><tr ><td valign="center"><img src="/icons/sv_dot.gif" border=0 align ="center" height=10></td></tr>


<!--spacer--><tr ><td valign="center"><img src="/icons/sv_dot.gif" border=0 align ="center" height=10></td></tr>

<tr ><td valign="center" BGCOLOR="#C0C0C0" colspan=2>
<img src="/icons/sv_dot.gif" border=0 height=2></td></tr></table>

<INPUT TYPE=hidden NAME="%%PostCharset" VALUE="ISO-8859-1">

This was basically cut from the default view search form.

The problem is that every time I submit the search I get an error and the URL shows: http://host/download.nsf/$$ViewTemplate+for+Download+File+2?OpenForm&Seq=1

I'm not sure why I get the Seq=1, but if you can tell me what my problem is and how to fix it or have an even better solution that will allow me to include search functionality within my form and return results within my form please tell me.

Question by:jz6pwc

Expert Comment

ID: 2766164
You could put this HTML on the form where you want the search bar to be:

<form method=\"post\" action=\"./WebSearch?SearchView\"><input name=\"Query\" value=\"\" size=30 maxlength=40><input type=\"button\" Value=\"Search\" onClick=\"noEntry()\"> <script language=\"JavaScript\"> function noEntry() { if (document.forms[0].Query.value.length<1) { return false; } else { document.forms[0].submit(); } } </script>

Expert Comment

ID: 2766167
Woops, just read where you want the same view format... I don't think this is what you're looking for...

Expert Comment

ID: 2766414
what are you looking for? horse!!!
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 2767310
Adjusted points from 35 to 50

Author Comment

ID: 2767311
I not sure what anders is trying to say but snocross, your code gives me the same problem as i described above. Creating the search form thru html is not the problem. If I add your code to my page as pass thru html I still get the "The page cannot be found...." and the url shows:


Accepted Solution

Jean Marie Geeraerts earned 50 total points
ID: 2917796
There's a detailed description available on of how to combine a search and a view in a form.
Just go to, go to Iris Today and look up the article called "Combining forms and views for friendlier Web applications (Part 1)"

It explains how to add html or a calculated field to put a search on top of the view and then have the results look the same way.

Author Comment

ID: 3677853
Comment accepted as answer

Author Comment

ID: 3677854
The best idea I've herd yet?

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Word Pro Conversion utility 13 35
How to add a username for multiple users in Lotus 6 119
Using @Prompt in a Queryclose Event 14 84
Installing Lotus Notes on Citrix XenApp 3 156
For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
This is an old article, please see an updated version of this article, located here:
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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