Solved

Lotus Note Search in view

Posted on 2000-04-28
8
820 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
 
LVL 1

Author Comment

by:jz6pwc
ID: 2767310
Adjusted points from 35 to 50
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

22 Experts available now in Live!

Get 1:1 Help Now