Re: [WebDNA] Conditional search

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103069
interpreted = N
texte = Tom Duke wrote: > [search db=^db/products.db&group1field=SKU&waGROUP1datarq=[url][srch][/url]] > > [showif [numfound]=0] > [search > db=^db/products.db&group1field=SKU&woGROUP1datarq=[url][srch][/url]] > [/showif] > > [/search] That doesn't work either (I tried something similar less than a month ago). What you need to do is treat it as two completely separate searches with separate [/SEARCH] tags: [search db=....] ... [showif [numfound]=0] [search db=...] ... [/search] [/showif] ... [/search] Frank Nordberg http://www.musicaviva.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Conditional search ("Terry Wilson" 2009)
  2. Re: [WebDNA] Conditional search (Frank Nordberg 2009)
  3. Re: [WebDNA] Conditional search ("Terry Wilson" 2009)
  4. Re: [WebDNA] Conditional search (Frank Nordberg 2009)
  5. Re: [WebDNA] Conditional search (Brian Fries 2009)
  6. Re: [WebDNA] Conditional search ("Dan Strong" 2009)
  7. Re: [WebDNA] Conditional search (Terry Wilson 2009)
  8. Re: [WebDNA] Conditional search (Tom Duke 2009)
  9. [WebDNA] Conditional search ("Ki Song - Knifecenter.com" 2009)
Tom Duke wrote: > [search db=^db/products.db&group1field=SKU&waGROUP1datarq=[url][srch][/url]] > > [showif [numfound]=0] > [search > db=^db/products.db&group1field=SKU&woGROUP1datarq=[url][srch][/url]] > [/showif] > > [/search] That doesn't work either (I tried something similar less than a month ago). What you need to do is treat it as two completely separate searches with separate [/SEARCH] tags: [search db=....] ... [showif [numfound]=0] [search db=...] ... [/search] [/showif] ... [/search] Frank Nordberg http://www.musicaviva.com Frank Nordberg

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:

Custom formulas.db (1998) [protect] on NT? (1997) WebCat b13 CGI -shownext- (1997) Cancel Subscription (1996) Running 2 two WebCatalog.acgi's (1996) Re:no [search] with NT (1997) Weird Math and SV (1997) Bulk Linebreak Changes (2002) Generating unique SKU from [cart] - FIXED! (1997) MORE: Can I determine where they are coming from? (2000) HELP WITH DATES (1997) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) [WebDNA] client request (2010) Re:quit command on NT (1997) Updating a database once per day - An example (1998) TCP Connect for a newbie (2002) totals (1997) WebCat2: Formulas.db question (1997) WebCat B13 Mac CGI -- Frames question (1997) WebCat2 - storing unformatted date data? (1997)