I'll assume that you have the basic search box working, and that you just want
to add the drop-down option to search a particular view?
In your front-end form, you have a text field called "SearchString" (that is
what the IBM article calls it). You need to add another field to let the user
choose a view to search. Make this a drop-down (a <select> tag with <option>
tags for each of your choices). Call this "SearchView" or something similar.
Then in your back-end form that accepts the POST data (the article calls it
"ViewSearch" form), add a text field called "SearchView". You may need to add
input translation to strip out spaces, depending on how your views are named.
Then, in the $$Return field, instead of calling
Hello,
I'll assume that you have the basic search box working, and that you just want to add the drop-down option to search a particular view?
In your front-end form, you have a text field called "SearchString" (that is what the IBM article calls it). You need to add another field to let the user choose a view to search. Make this a drop-down (a <select> tag with <option> tags for each of your choices). Call this "SearchView" or something similar.
Then in your back-end form that accepts the POST data (the article calls it "ViewSearch" form), add a text field called "SearchView". You may need to add input translation to strip out spaces, depending on how your views are named. Then, in the $$Return field, instead of calling
"[/" + database + "/" + "AllActionItems" + "?SearchView&Query=" + SearchString + "&Login]"
You'll call: "[/" + database + "/" + ViewSearch + "?SearchView&Query=" + SearchString + "&Login]"
In the first example, the search always searches against "AllActionItems" but in the 2nd, it will search whatever view the user has chosen.
Good luck, hope this helps.
Seth
IBM Article: http://www-128.ibm.com/developerworks/lotus/library/ls-Combining_forms_and_views _Part1/index.html