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:

RE: MacFinder -- a new WebDNA web site (1998) Date problems (1997) credit card (1997) Return records from another (1997) [WebDNA] [replace] bug in v7.0? (2010) Sorting by date (1997) Limit on nested [ShowIf]'s? (1997) SKU lookup (1997) WebCat2.0 [format thousands .0f] no go (1997) apostrophe in search item (1997) Error -108 (1997) WebCat2_Mac RETURNs in .db (1997) SEARCH Peram (2003) searching within same page (2000) Forms Search Questions (1997) Date Question (2002) WebCat2b15MacPlugin - showing [math] (1997) Order not created error (never mind) (1997) calculating tax rates, mail order solutions and version 2 (1997) searchable list archive (1997)
Search Results
> No records found.