Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Lotus Note Search in view

Posted on 2000-04-28
8
Medium Priority
?
854 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
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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…
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…
Integration Management Part 2
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

916 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