Inmagic Forums
Inmagic Forums
WebPublisher PRO
One query screen with multiple search boxes|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
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. |
|||
|
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:
Peter Peter Tyrrell, MLIS Director and Lead Developer Andornot Consulting Inc. http://andornot.com/about/developerblog http://twitter.com/andornot |
||||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Inmagic Forums
Inmagic Forums
WebPublisher PRO
One query screen with multiple search boxes
