www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  WebPublisher PRO    One query screen with multiple search boxes
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
What is the best way to search two or more separate textbases on a query screen? For example, search box one searches textbase A, search box two search textbase B, canned query searches textbase C and so forth?

I have two which I have just set up a search box to search each separately and it works and gives search results when I use either search box but I get an error message and if I run on script error notification on line 496 character that "elements.length is null or not an object"

I assume it has something to do with calling the query script ics-q-main.js twice on the same query screen.
 
Posts: 171 | Registered: Tue June 08 2004Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
You need two forms. A canned query does not use a form, so it doesn't come in to this discussion.

Each form must be wrapped in its own form tag, and each form must have its own text inputs and hidden inputs representing textbase name, etc. There is no limit to the number of forms you can have on a page, but ics-q-main.js is geared to a single form whose name="qbe_form", so you have to work around that a bit:

  • Set BU input manually, or to window.location
  • Set XC input manually to ics-wpd/exec/icswppro.dll
  • Validate the form yourself.


Peter


Peter Tyrrell, MLIS
Director and Lead Developer
Andornot Consulting Inc.
http://andornot.com/about/developerblog
http://twitter.com/andornot
 
Posts: 188 | Location: Victoria, BC, Canada | Registered: Thu September 20 2001Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  WebPublisher PRO    One query screen with multiple search boxes