Re: major search problem

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21153
interpreted = N
texte = >I need it to send the searchstring along, but with the max set to 1 and the >startat = [index]I assume part of your problem is that the [searchString] already contains a max=25. You can probably fool WebCatalog into overriding the max=N by putting your max=1 *first* in the search arguments, so it 'sees' that one first and uses it instead of the later max=25:[search max=1&[searchString]]Also, there is really nothing magical about [searchString] -- it's merely a convenience in that WebCatalog puts together a nice set of search parameters without you having to think about it. So what I'm saying is you can make up your own search string all on your own, without using WebCatalog's pre-built one:[search db=[db]&eqFIELDdata=[fieldValue]&max=1]It just requires you be aware of what new values (such as a new startAt, which you can compute with [math]) should be put into the parameters. Just grab all your form variables and duplicate them into the search parameters.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: major search problem (Martin Gertz Bech 1998)
  2. major search problem (Martin Gertz Bech 1998)
  3. Re: major search problem (PCS Technical Support 1998)
  4. RE: major search problem (Olin Lagon 1998)
>I need it to send the searchstring along, but with the max set to 1 and the >startat = [index]I assume part of your problem is that the [searchString] already contains a max=25. You can probably fool WebCatalog into overriding the max=N by putting your max=1 *first* in the search arguments, so it 'sees' that one first and uses it instead of the later max=25:[search max=1&[searchString]]Also, there is really nothing magical about [searchString] -- it's merely a convenience in that WebCatalog puts together a nice set of search parameters without you having to think about it. So what I'm saying is you can make up your own search string all on your own, without using WebCatalog's pre-built one:[search db=[db]&eqFIELDdata=[fieldValue]&max=1]It just requires you be aware of what new values (such as a new startAt, which you can compute with [math]) should be put into the parameters. Just grab all your form variables and duplicate them into the search parameters.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] Needing Open Source Support (2012) Protect (1997) before after on (1998) [WebDNA] setcookie then redirect (2013) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) boldwords (2001) selectively replacing records within a [founditems] (2000) New Command prefs ... (1997) Sku numbers (1997) WebCat2 beta 11 - new prefs ... (1997) calculating tax rates, mail order solutions and version 2 (1997) Bug? (1997) Search Question (2003) God's Truth (1998) Erotic Sites (1997) Need relative path explanation (1997) Date search - yes or no (1997) Macos8.6 to X migration problems (2000) Displaying search results in a new frameset (1997) Add more fields to an existent data base (1997)