Solved

Lotus Note Search in view

Posted on 2000-04-28
8
837 Views
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">
</td></tr>

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

</table>


<!--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">
</FORM>

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.

0
Comment
Question by:jz6pwc
[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
8 Comments
 
LVL 5

Expert Comment

by:snocross
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>
0
 
LVL 5

Expert Comment

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

Expert Comment

by:anders_krag
ID: 2766414
what are you looking for? horse!!!
0
Industry Leaders: 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!

 
LVL 1

Author Comment

by:jz6pwc
ID: 2767310
Adjusted points from 35 to 50
0
 
LVL 1

Author Comment

by:jz6pwc
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:

http://host/download.nsf/$$ViewTemplate+for+Download+File+2?OpenForm&Seq=1
0
 
LVL 8

Accepted Solution

by:
Jean Marie Geeraerts earned 50 total points
ID: 2917796
There's a detailed description available on notes.net of how to combine a search and a view in a form.
Just go to www.notes.net, 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.
0
 
LVL 1

Author Comment

by:jz6pwc
ID: 3677853
Comment accepted as answer
0
 
LVL 1

Author Comment

by:jz6pwc
ID: 3677854
The best idea I've herd yet?
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

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…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

634 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