Solved

Customizable search forms

Posted on 2001-09-04
5
311 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
[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
  • 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

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!

Question has a verified solution.

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

Suggested Solutions

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

740 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