Re: Trouble with Showif and Search
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 19520
interpreted = N
texte = >I am having trouble getting this to work....>>[showif [switch]=yes][Search db=some.db&eqSKUdata=[SKU]][Founditems][/showif]>>This is at the top of my template. As search happens when [switch] value =>yes. To make this work I need to show [/founditems][/search] later in the>template a the same time as the above. It is switched the same way as>in,...>>[showif [switch]=yes][/founditems][/search][/showif]>>.. but I get an error..>>Error: Error: expected [/FOUNDITEMS], but found [/showif]>>Shouldn't this work?No, this is a classic example of imperfect nesting. You have to put the *entire* search context, or the *entire* founditems context, inside the showif context.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>I am having trouble getting this to work....>>[showif
[switch]=yes][Search db=some.db&eqSKUdata=[SKU]]
[founditems][/showif]>>This is at the top of my template. As search happens when
[switch] value =>yes. To make this work I need to show [/founditems][/search] later in the>template a the same time as the above. It is switched the same way as>in,...>>[showif
[switch]=yes][/founditems][/search][/showif]>>.. but I get an error..>>Error: Error: expected [/FOUNDITEMS], but found [/showif]>>Shouldn't this work?No, this is a classic example of imperfect nesting. You have to put the *entire* search context, or the *entire* founditems context, inside the showif context.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Kenneth Grome
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:
Help! WebCat2 bug (1997)
[WebDNA] Help with work-around format date (2013)
Forms & Tables (1998)
SM's Tech Help (or lack of) (2000)
Re:redirect from the errorsMessages.db entry (1997)
[WebDNA] Conditional search (2009)
Retaining data (2003)
LetterRip and WebCat (1998)
Multiple postings (2000)
creates folders with AS (1997)
Date fun with MySQL (2004)
Bug? (1997)
Web Catalog 2 demo (1997)
[WebDNA] php/mySQL version of WebDNA Speed Test? (2009)
WC2b15 File Corruption (1997)
Nitro plugin? (1998)
Database Advice (1996)
New Command prefs ... (1997)
ANSWER to: CC Merchant suggestions?? (1997)
A quickie question (1997)