Re: If search results are blank...

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50182
interpreted = N
texte = Doh! Here's why it works:[search db=catalog.txt...&eqitemdatarq=[item]&itemsumm=T] [founditems] [search db=catalog.txt&eqitemdatarq=[item]...&colorsort=1&colorsdir=as&sizesort= 2&sizesdir=as&sizetype=num] [if ([color]=)&([size]=)] [else]Select Your Color / Size[/else] [else] [founditems] [/founditems] [/else] [/if] [/search] [/founditems] [/search]The item is being carried from a previous template. > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of > Donovan > Sent: Friday, May 09, 2003 12:37 PM > To: WebDNA Talk > Subject: Re: If search results are blank... > > Kimberly D. Walls wrote: > > >I plugged it in and it works. ?? > > > You have tested with blank fields? > > > > > > >>[search > db=catalog.txt...&colorsort=1&colorsdir=as&sizesort=2&sizesdir=as&sizety pe > =num] > >>[if ([color]=)&([size]=)] > >> > Above there is no founditems loop so how does the search know what the > value is? My guess is all the > [then] equation is always returning false so the [else] code is always > getting issued. > > Laurents looks good to me... its finding all valid records and > displaying them. > > Donovan > > >>[then][/then] > >>[else] > >> > >>[/else] > >>[/if] > >>[/search] > >> > >>Regards, > >>Tim > >> > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: If search results are blank... (Donovan 2003)
  2. Re: If search results are blank... (Donovan 2003)
  3. Re: If search results are blank... (Kimberly D. Walls 2003)
  4. Re: If search results are blank... (Donovan 2003)
  5. Re: If search results are blank... (Kimberly D. Walls 2003)
  6. Re: If search results are blank... (Donovan 2003)
  7. Re: If search results are blank... (Laurent Bache 2003)
  8. Re: If search results are blank... (Kimberly D. Walls 2003)
  9. Re: If search results are blank... (Tim Robinson 2003)
  10. If search results are blank... (Kimberly D. Walls 2003)
Doh! Here's why it works:[search db=catalog.txt...&eqitemdatarq=[item]&itemsumm=T] [founditems] [search db=catalog.txt&eqitemdatarq=[item]...&colorsort=1&colorsdir=as&sizesort= 2&sizesdir=as&sizetype=num] [if ([color]=)&([size]=)] [else]Select Your Color / Size[/else] [else] [founditems] [/founditems] [/else] [/if] [/search] [/founditems] [/search]The item is being carried from a previous template. > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of > Donovan > Sent: Friday, May 09, 2003 12:37 PM > To: WebDNA Talk > Subject: Re: If search results are blank... > > Kimberly D. Walls wrote: > > >I plugged it in and it works. ?? > > > You have tested with blank fields? > > > > > > >>[search > db=catalog.txt...&colorsort=1&colorsdir=as&sizesort=2&sizesdir=as&sizety pe > =num] > >>[if ([color]=)&([size]=)] > >> > Above there is no founditems loop so how does the search know what the > value is? My guess is all the > [then] equation is always returning false so the [else] code is always > getting issued. > > Laurents looks good to me... its finding all valid records and > displaying them. > > Donovan > > >>[then][/then] > >>[else] > >> > >>[/else] > >>[/if] > >>[/search] > >> > >>Regards, > >>Tim > >> > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Kimberly D. Walls

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:

is [Bankres] an internal webcat variable? (1999) Country & Ship-to address & other fields ? (1997) [WebDNA] 3-5 GB of native WebDNA db in RAM?, else MySQL w/WebDNA (2009) Formulas.db + Users.db (1997) [WebDNA] Multiplication Math Test (2008) How to Sort Summ data ? (1997) ReturnRaw context (1997) AOL (1999) searchable list archive (1997) tracking variables across a site... (2000) AppleScript/.db (was:FTP to WebStar) (2001) Pithy questions on webcommerce & siteedit (1997) Bug in capitalize ... ? (2003) WC1.6 to WC2 date formatting (1997) Why is [authenticate] not recognizing [username] on all sitedirectories? (2000) Execute Applescript (1997) WebCat2 - [include] tags (1997) Session ID Equivalent (2003) Problems with [Math] (1998) calculating tax rates, mail order solutions and version 2 (1997)