|
|
|
|
|
|
|
|
|
|
|
|
|
|
Extend the reach of your IWWCM search, Part 2 (continued)
I then created a page style "Search Results" and assigned it to the Search Results page layout.
Finally, I created an empty content page named "Search Results" and assigned it to the Search Results page style. This is the page that is loaded from the "Go" buttons on each search form.
Now, can you remember the last two lines of script behind the "Go" button on the search form from last week's article? IF not, here's a recap:
var url = "Publishing.nsf/Content/Search Results?OpenDocument&IndexDb="C-Search.nsf/(SearchWeb)/?SearchView&Query=(masterton or carterton) and ([CS_OriginalDatabase] CONTAINS (Web Reports))&SearchOrder=4";
window.parent.location.href=url;
|
When the Search Results page is loaded with window.parent.location.href=url, the values of the "IndexDb" and "Query" are concatenated to build the source of the inline frame that was added to the Search Results page layout above, so the source URL in this instance would be:
"/C-Search.nsf/(SearchWeb)?SearchView&Query=(masterton or caterton) and ([CS_OriginalDatabase] CONTAINS (Web Reports))&SearchOrder=4";
|
and the net result of loading this URL into IWWCM is the execution of a query in C-Search with the results being passed back for rendering in the IWWCM Search Results page. This is shown below in Figure B.
FIGURE B
 
The C-Search results form is rendered in IWWCM. Roll over picture for a larger image.
Final thoughts This article illustrates one method of extending the search capabilities of IWWCM by making use of the C-Search index. Implementation of the solution described required only elementary JavaScript skills to build a Domino query string from a completed search form, and a basic understanding of HTML and Domino query syntax. The same techniques used in this article could be used to render any number of C-Search search forms through the same set of IWWCM components that were created.
Colin Neale is Notes consultant and author of C-Search, C-Search for Domino.Doc and the C-Search Mail Monitor. He can be reached at cneale@c-search-solutions.com or http://www.c-search-solutions.com.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.
Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.
Learn how to easily clean up your address book. |
-- Advertisement --
Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.
Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).
Tap here to get started! |
|
|
|
|
|
|
|
|
|
|