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:

WebCatalog for Mac 2.0.1 Released (1997) listfiles-looking for slick solution (1997) recording the previous found record.. (2004) Problems appending to database (1997) WebCat2b13 Command Reference Doc error (1997) Multi-processor Mac info ... (1997) Req for code: upload and append to DB (2002) WebCatalog 2.0 b 15 mac (1997) More on the email templates (1997) show all problem (1997) typhoon... (1997) Formatting ModDate (2000) WebCatalog complains that the service is not running. (1998) Just Testing (1997) OT: How to get more traffic to a site? (2005) Appligent PDFs (was: OT - Dig Sigs) (2004) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) [defined]ish (1997) Something wrong with this list? (2006) Plugin or CGI or both (1997)