Re: Error - Search / Showif

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31813
interpreted = N
texte = All contexts have to be completely nested, that is, you can not hideif/showif the closing tag of a context, you would have to hideif/showif the whole search.You will have to follow the following code example[showif [Searching]=T] [search db=listings.txt&eqCategorydatarq=[Category]] [founditems][/founditems] [/search] [/showif] [hideif [Searching]=T] [search db=listings.txt&eqOfficedatarq=[Office]&eqCategorydatarq=[Category]&Pricesor t&Pricesdir=de&Pricetype=num&max=5] [founditems][/founditems] [/search] [/hideif]Paul > From: Kim Ingram > Reply-To: (WebCatalog Talk) > Date: Fri, 12 May 2000 18:02:43 > To: (WebCatalog Talk) > Subject: Error - Search / Showif > > Please help!! The problem is this...after posting to a template via web > form, I recieve the following error: > > Error: Error: expected [/SEARCH], but found [/showif] instead[/showif] > > When I view the source code for the template...there's no code showing > after: > > > > > > The above...T comes from form variable [Searching] and Single Family > Residential comes from form variable [Category]. Can someone see an error > in the following original code?? I've been looking at it for a while and > can't figure out what the problem is. Is it impossible to use one or the > other search command based on the [showif]/[hideif] form variables? The > original code is as follows: > >
T Single Family Residential
> > > > [showif [Searching]=T] > [search db=listings.txt&eqCategorydatarq=[Category]] > [/showif] > [hideif [Searching]=T] > [search > db=listings.txt&eqOfficedatarq=[Office]&eqCategorydatarq=[Category]&Pricesor > t&Pricesdir=de&Pricetype=num&max=5] > [/hideif] > > [founditems] > > > > > [/founditems] > > [/search] > > > ------------------------------------------------------------- > 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:

[Searching] [Category]
$[format thousands 10.2f][Price][/format] > [showif [Category]=Single Family Residential][include sfr.txt][/showif] > [showif [Category]=Rural Residential][include rfr.txt][/showif] > [showif [Category]=Rentals][include rentals.txt][/showif] > [showif [Category]=Lots and Land][include lnl.txt][/showif] > [showif [Category]=Commercial and Industrial][include cni.txt][/showif] >
    
  1. Re: Error - Search / Showif (Paul Fowler 2000)
  2. Re: Error - Search / Showif (Anup Setty 2000)
  3. Re: Error - Search / Showif (Kenneth Grome 2000)
  4. Error - Search / Showif (Kim Ingram 2000)
All contexts have to be completely nested, that is, you can not hideif/showif the closing tag of a context, you would have to hideif/showif the whole search.You will have to follow the following code example[showif [Searching]=T] [search db=listings.txt&eqCategorydatarq=[Category]] [founditems][/founditems] [/search] [/showif] [hideif [Searching]=T] [search db=listings.txt&eqOfficedatarq=[Office]&eqCategorydatarq=[Category]&Pricesor t&Pricesdir=de&Pricetype=num&max=5] [founditems][/founditems] [/search] [/hideif]Paul > From: Kim Ingram > Reply-To: (WebCatalog Talk) > Date: Fri, 12 May 2000 18:02:43 > To: (WebCatalog Talk) > Subject: Error - Search / Showif > > Please help!! The problem is this...after posting to a template via web > form, I recieve the following error: > > Error: Error: expected [/SEARCH], but found [/showif] instead[/showif] > > When I view the source code for the template...there's no code showing > after: > > > > > > The above...T comes from form variable [Searching] and Single Family > Residential comes from form variable [Category]. Can someone see an error > in the following original code?? I've been looking at it for a while and > can't figure out what the problem is. Is it impossible to use one or the > other search command based on the [showif]/[hideif] form variables? The > original code is as follows: > >
T Single Family Residential
> > > > [showif [Searching]=T] > [search db=listings.txt&eqCategorydatarq=[Category]] > [/showif] > [hideif [Searching]=T] > [search > db=listings.txt&eqOfficedatarq=[Office]&eqCategorydatarq=[Category]&Pricesor > t&Pricesdir=de&Pricetype=num&max=5] > [/hideif] > > [founditems] > > > > > [/founditems] > > [/search] > > > ------------------------------------------------------------- > 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/ Paul Fowler

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:

Tuition - UK (2000) date and time stamp (2003) PCS Emailer's role ? (1997) [WebDNA] Test 3 (2009) Uh...can someone help me out with the b10? (1997) Version f1 status (1997) PIXO support (1997) [format 40s]text[/format] doesn't work (1997) RAM variables (1997) [WC 2.1.30] Stack overflow. (2000) How do I handle extra spaces? (2002) Summing fields (1997) Problems with Price field (1997) Re:Emailer and encryption (1997) [WebDNA] Help with STMP Setup using Authentication with Google Apps in WebDNA (2016) multiple search commands (1997) Need help... (1997) Two prices in shoppingcart? (1997) Large sites (2003) 2.0 Info (1997)
[Searching] [Category]
$[format thousands 10.2f][Price][/format] > [showif [Category]=Single Family Residential][include sfr.txt][/showif] > [showif [Category]=Rural Residential][include rfr.txt][/showif] > [showif [Category]=Rentals][include rentals.txt][/showif] > [showif [Category]=Lots and Land][include lnl.txt][/showif] > [showif [Category]=Commercial and Industrial][include cni.txt][/showif] >