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:

I'm having trouble using [url][interpret][math] together inlookup (1997) Database field limit? (1998) WC2.0 Memory Requirements (1997) Sorting LISTFILES (1997) email preferences on NT (1997) [protect admin] (1997) before after on (1998) A quickie question (1997) Download URL & access on the fly ? (1997) Fun with dates (1997) FW: Shipping calculations (1997) PSC recommends what date format yr 2000??? (1997) ErrorMessages.db suggestion (1997) [CreateDate] tag? (1998) Protect and Serve (1999) WebCatalog for guestbook ? (1997) Error, 101 a DNS problem ? (1997) Credit Card Number checking (1997) [WebDNA] Date weirdness (2014) Separate SSL Server (1997)
Search Results
> No records found.