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
Solved

Customizable search forms

Posted on 2001-09-04
5
310 Views
Last Modified: 2013-12-18
I am trying to use the $$search form to get a customizable webform to do searches on my Notes db.
I just inserted all items of the standard simple search form and some html stuff , but all my searches give a failure : Item not found execption.

I noticed that the form action in the standard searchform is like this :


<FORM METHOD="POST" ACTION="/ins/test/0331ibra.nsf/da86a9212256cc0d00256abd004e488e?SearchView">

Results are being displayed OK

The customizable gets a DOMINO_FORM with following action :

<FORM METHOD=post ACTION="/ins/test/0331ibra.nsf/36b7ec23bf96150e00256abd003a5d54?CreateDocument" NAME="_DominoForm">


I noticed the CreateDocument command ; what's the use of it ?
Should i do some additional things to make it work ?
There's very little help in the help db on this subject.
I use Notes 4.6
0
Comment
Question by:Steamer
  • 2
  • 2
5 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6454803
CreateDocument command will give you are new document upon submit of the form.

In previous case, the document will searchview with the parameters in the search document, it will not create any document.

If you have the search site database take a look at web search simple form.

~Hemanth
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6455215
Forgot some detail, the $$Search form in the search site would contain a field called $$Return, that is the one which builds the search query and directs the search results. This particular form needs some modifications to fit the searchview command, here is the technote which describes it:

http://support.lotus.com/sims2.nsf/eb5fbc0ab175cf0885256560005206cf/e9bbdef0951b83518525643e006c473b?OpenDocument

Some of the discussion on this topics

http://notes.net/46dom.nsf/Search/10ccdb1769338a2685256a6700771925?OpenDocument

http://notes.net/46dom.nsf/Search/e12bcc75d13ef0e7852567ca003b530d?OpenDocument

Hope it helps
0
 
LVL 18

Accepted Solution

by:
marilyng earned 100 total points
ID: 6455931
Hey, Steamer..

Did you cut and paste?  'cause the Post method needs to be in quotes.. (just the obvious, smile)


<FORM METHOD="Post" ACTION="/ins/test/0331ibra.nsf/36b7ec23bf96150e00256abd003a5d54?CreateDocument" NAME="_DominoForm">

I believe the customized search form needs to be named: $$Search or the alias needs to have the name, else Domino uses the default form sitting in the icons directory.

The $$Return field on your customized form should follow this format:

DBName:=@subset(@dbName;-1);
"[[" + dbname+"/ViewName/?SearchView&Query=" + Query + "]]"

the double brackets overrides the submit function of the $$return field (which is the form that, I think, Domino is trying to create to display the search results- can be wrong here), However, enclose the $$return URL in double brackets. ViewName is the name of the view you want to search.

The "Query" is the results of the computed query field that parses and formats user selections like:

"Field theName=" + theNameValue + " AND Field theDate=" + thisDate + so on.

To avoid having Domino save an instance of your search form, create a hidden field called "SaveOptions" with the computed value of "0"

Then you need a search results page, so, you need a form that has the name: $$SearchTemplate for <viewname> or $$SearchTemplateDefault if you want the same form used in all results.

The results page needs to have one $$ViewBody field where the results will be displayed.

I'm sure you'll get more opinions...
marilyng.


0
 

Author Comment

by:Steamer
ID: 6472303
Thanx for the tip on the SaveOptions
Works like a charm
0
 
LVL 18

Expert Comment

by:marilyng
ID: 6472561
YOu're welcome!!
Happy to help, marilyng
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

840 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