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
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

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!!!
Technology Partners: 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!


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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

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

Suggested Solutions

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…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

739 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