Re: [showif [numfound]=0]?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33258
interpreted = N
texte = see belowTim Robinson wrote:> Hi there, > > If there are no records found after a search, I want to display a message saying so, and I've tried this: > [showif [numfound]=0] > > > No records found. > > [/showif] > > ... but it doesn't seem to work.is that [showif] fully within the confines of the [search] ... [/search] which is finding those zero records? It needs to be.> > > All the [founditems] info is below this code (for when there ARE records found). But when I perform the search and there are NO records found, it just displays a blank screen. When I view Page Source, this is all I get:is it because your entire rest of the page is within the [founditems] loop? If zero records are found then *nothing* inside the [founditems] loop will display at all. place your [founditems]....[/founditems] strategically so that the page still acts in a useful way when zero records are found.> > > ----- > > > > >

Imagine Tech Knowledge Base

> >
> >

>

> > > > > > > > ----- > > .... it STOPS after the [/showif] tag. Nothing else displays! > > Any ideas anyone. It would be greatly appreciated. > > Regards, > Tim > > Tim Robinson > Art Director > imagine online > tim@imagine.au.com > http://www.imagine.au.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://search.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

Search Results
> No records found.
    
  1. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  2. Re: [showif [numfound]=0]? (Joseph D'Andrea 2000)
  3. Re: [showif [numfound]=0]? (John Butler 2000)
  4. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  5. Re: [showif [numfound]=0]? (Joseph D'Andrea 2000)
  6. Re: [showif [numfound]=0]? (Jesse Proudman (Lists Account) 2000)
  7. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  8. Re: [showif [numfound]=0]? (Nitai @ Eyework 2000)
  9. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  10. Re: [showif [numfound]=0]? (WebDNA Support 2000)
  11. [showif [numfound]=0]? (Tim Robinson 2000)
see belowTim Robinson wrote:> Hi there, > > If there are no records found after a search, I want to display a message saying so, and I've tried this: > [showif [numfound]=0] > > > No records found. > > [/showif] > > ... but it doesn't seem to work.is that [showif] fully within the confines of the [search] ... [/search] which is finding those zero records? It needs to be.> > > All the [founditems] info is below this code (for when there ARE records found). But when I perform the search and there are NO records found, it just displays a blank screen. When I view Page Source, this is all I get:is it because your entire rest of the page is within the [founditems] loop? If zero records are found then *nothing* inside the [founditems] loop will display at all. place your [founditems]....[/founditems] strategically so that the page still acts in a useful way when zero records are found.> > > ----- > > > > >

Imagine Tech Knowledge Base

> >
> >

>

> > > > > > > > ----- > > .... it STOPS after the [/showif] tag. Nothing else displays! > > Any ideas anyone. It would be greatly appreciated. > > Regards, > Tim > > Tim Robinson > Art Director > imagine online > tim@imagine.au.com > http://www.imagine.au.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://search.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://search.smithmicro.com/ John Butler

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:

Nesting FoundItem Context (1997) [WebDNA] WebDNA & VPS (2009) RE: Can a database get stomped by simultaneous access? (1997) WC2f3 (1997) read and write you own cookies with webcat (1997) OT: Backup Strategies (2007) File upload woes (1998) [WebDNA] Solution to dynamic error pages on Apache (2011) Summing fields (1997) two unique banners on one page (1997) Alias Problem (2002) RE: Subtotal help (1997) FAX orders (1996) in conversions.db crashes unix webcat (1999) Weird + issue (2002) Error handling for accountNum (1997) Exclamation point (1997) [WebDNA] multi-language sites in current versions of webdna? (2010) search for non-unique question (2001) creative use of webcatalog (1998)
Search Results
> No records found.