At 04:35 pm 6/12/00 +0000, Jason Spisak wrote:
We are closing in on it. Are any of these field indexes? Vendor maybe, Zip? If the ZClass instances always have a value for them, then when you submit this search and leave one of the 'field index' input boxes blank, you'll get no results, I believe.
vendor and zip are field indexes. coupon_text and categorylist are keyword indexes. If you add an instance and then try to search, no results will be found. Here's the odd thing. After I add an instance, I go to the zcatalog object in the management interface and manually hit the "update Catalog" button. If I run the search again the new instance will be found if it matches the search criteria. The search will work with one or more search criteria entered into the form fields.
<form action="CatReport" method="get"> <h2><dtml-var document_title></h2> Enter query parameters:<br><table>
<tr><th>Coupon text</th> <td><input name="coupon_text" width=30 value=""></td></tr> <tr><th>Categorylist</th> <td><input name="categorylist" width=30 value=""></td></tr> <tr><th>Vendor</th> <td><input name="vendor" width=30 value=""></td></tr> <tr><th>Zip</th> <td><input name="zip" width=30 value=""></td></tr>
<tr><td colspan=2 align=center> <input type="SUBMIT" name="SUBMIT" value="Submit Query"> </td></tr> </table> </form>
<dtml-var menu> <dtml-var standard_html_footer>
Try simplifying it. Try one at a time to find out which one is forcing the no results. Jason Spisak