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:
Format all of a sudden doesn't work (1997)
Quick ShowIf question (1997)
WC2.0 Memory Requirements (1997)
emailer (1997)
Copyright ? (1997)
[append] and SSL (1997)
Preventing Merchant Settling ? (1997)
textarea question (1998)
[dos] command (1997)
Tea Room trouble (1997)
Almost a there but..bye bye NetCloak (1997)
Listserver problem (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Cart doesn't interpret tag! (1997)
can we get string variables? (1998)
RE: Problems with dbcatalog.exe (1997)
Change in Host? (1999)
multi-paragraph fields (1997)
Frames and WebCat (1997)
problems with WebCat-Plugin (1997)