Search DominoPower's 11,323 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
PROGRAMMING POWER
Extend the reach of your IWWCM search, Part 2
By Colin Neale

Last week (in http://www.dominopower.com/issues/issue200509/00001643001.html), I demonstrated how I used my own C-Search program to extend IWWCM search capabilities beyond it's own publishing database without the need to develop search routines inside IWWCM itself.

Last week, I showed you how to load Web content and configure IWWCM indexing, configure Web Reports indexing, and create the search forms. In this article, I'll show you how to render the search forms and search results.

As with last week's article, I'm assuming that you are familiar with IWWCM for Domino and the basics of JavaScript and Domino search techniques.

Render the Search forms
The search forms added to C-Search earlier required rendering through the Web site framework. This was accomplished by creating a page layout "Search". This was based on the "2 Pane Layout" that is supplied with IWWCM.

Next, I created a page style "Search". This was assigned it to the "Search" page layout.

Finally I created a web content page named "Search" and added the following code to the body of the document.

<IFRAME ID="search" SRC="/C-Search.nsf/Search?OpenForm" NAME="search" width="659" height="381" align="right" MARGINHEIGHT="0" MARGINWIDTH="0" FRAMEBORDER="0" SCROLLING="No" NORESIZE="TRUE"></IFRAME>

The code here uses an inline frame to display the "Search" form from C-Search in the IWWCM search page as shown in Figure A below:

FIGURE A


Here, the C-Search form is rendered in IWWCM. Roll over picture for a larger image.

,H1 Render the search results The final task was to set up the site to display the results of a search. This was achieved by creating a page layout called "Search Results". As before, this was based on the "2 Pane Layout" supplied with IWWCM. In this layout, I added the following to the "Pre-Body Component" block:

<IFRAME ID="searchresults" SRC='[CGI:IndexDb]&Query=[CGI:Query]' WIDTH="685" HEIGHT="350" NAME="searchresults" FRAMEBORDER="0" NORESIZE="TRUE" SCROLLING="yes">

and the following to the "Post-Body Component" block:

</IFRAME>

The code above renders C-Search results in an IWWCM content page on the Web site. This is achieved with IWWCM's [CGI] tag. This tag allows IWWCM to extract CGI variables from the URL string of loaded content. This tag was the key to allowing straightforward integration between IWWCM and C-Search.


1  ·  2  ·  Next »
Other articles you might like
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
DominoPower TV Episode 1: Inside a strategy session with Teamstudio
More about Domino log files
Say goodbye to the Uh-Ohs. Long live the Tens.
Why your log.nsf might not be purging properly
Latest Lotus Headlines
Recommended Maintenance - Lotus Notes Traveler
Here are the slides and other materials from our Lotusphere session
Microsoft OCS awareness in Lotus Connections and Websphere Portal?
SnTT: XPages Blank Calendar Control (Part 2), adding data
Have your Lotus Notes calendar display multiple time zones
Sample Database for Microsoft Office and Lotus Symphony Integration
Symphony 3.0 beta signals another attack on Office
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad: Apple's latest heartbreaker
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Running auto-respond rules when Outlook is closed
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login