Re: Nested [tags]
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 37589
interpreted = N
texte = Doh! :-)Yup, that worked just fine!Thanks very much for your help.on 2/8/01 4:20 pm, Anup Setty at asetty@vertical.net wrote:> Just for clarification, have you tried this and found it not working?> One thing I noticed in your code for looping, you need to use> [interpret] tags around [bundle[index]] variable,> > [interpret][bundle[index]][/interpret]> > Let me know if it works when you use [interpret] tag.> > [Good_Luck]> [!]Anup Setty[/!]> > > ----- Original Message -----> From: Mark Derrick
> To: WebCatalog Talk > Sent: Thursday, August 02, 2001 11:19 AM> Subject: Nested [tags]> > >> Hi, trying to use [loop] to condense a piece of WebDNA that we've been> using>> for a while>> >> We currently have the following code (in a [founditems][/founditems]>> context)>> >> [showif [bundle1]!]>> [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle1]]>> [foundItems]>> [make] / [title]>>
>> [spec]>>
>> [/founditems]>> [/search]>> [/showif]>> >> [showif [bundle2]!]>> [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle2]]>> [foundItems]>> [make] / [title]>>
>> [spec]>>
>> [/founditems]>> [/search]>> [/showif]>> >> This is repeated 9 times, each time the variable is changed to bundle3,>> bundle4, etc. (A lot of code!)>> >> Now we'd like to try and condense this by using the [loop] tag, but what> we>> have tried so far fails to work. We assume this is may be because you> can't>> nest WebDNA tags within each other.>> >> [loop start=1&end=9&advance=1]>> [showif [bundle[index]]!]>> [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle[index]]]>> [foundItems]>> [make] / [title]>>
>> [spec]>>
>> [/founditems]>> [/search]>> [/showif]>> [/loop]>> >> >> Anyone done anything similar to this and got it to work?>> >> Thanks.>> >> >> ------------------------------------------------------------->> 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/-------------------------------------------------------------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:
Doh! :-)Yup, that worked just fine!Thanks very much for your help.on 2/8/01 4:20 pm, Anup Setty at asetty@vertical.net wrote:> Just for clarification, have you tried this and found it not working?> One thing I noticed in your code for looping, you need to use> [interpret] tags around [bundle[index]] variable,> > [interpret][bundle[index]][/interpret]> > Let me know if it works when you use [interpret] tag.> > [Good_Luck]> [!]Anup Setty[/!]> > > ----- Original Message -----> From: Mark Derrick > To: WebCatalog Talk > Sent: Thursday, August 02, 2001 11:19 AM> Subject: Nested [tags]> > >> Hi, trying to use [loop] to condense a piece of WebDNA that we've been> using>> for a while>> >> We currently have the following code (in a [founditems][/founditems]>> context)>> >> [showif [bundle1]!]>> [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle1]]>> [founditems]>> [make] / [title]>>
>> [spec]>>
>> [/founditems]>> [/search]>> [/showif]>> >> [showif [bundle2]!]>> [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle2]]>> [founditems]>> [make] / [title]>>
>> [spec]>>
>> [/founditems]>> [/search]>> [/showif]>> >> This is repeated 9 times, each time the variable is changed to bundle3,>> bundle4, etc. (A lot of code!)>> >> Now we'd like to try and condense this by using the [loop] tag, but what> we>> have tried so far fails to work. We assume this is may be because you> can't>> nest WebDNA tags within each other.>> >> [loop start=1&end=9&advance=1]>> [showif [bundle[index]]!]>> [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle[index]]]>> [founditems]>> [make] / [title]>>
>> [spec]>>
>> [/founditems]>> [/search]>> [/showif]>> [/loop]>> >> >> Anyone done anything similar to this and got it to work?>> >> Thanks.>> >> >> ------------------------------------------------------------->> 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/-------------------------------------------------------------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/
Mark Derrick
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:
More on the email templates (1997)
WebCat2.0 [format thousands .0f] no go (1997)
Re:No Data (1997)
Problems appending to database (1997)
limitation found on group searching (1997)
PERL to Web DNA (2000)
is there a global includes directory? (1998)
docs for WebCatalog2 (1997)
[WebDNA] SendMail Problems, 453 (2016)
Sort Order on a page search (1997)
Version f1 status (1997)
[protect] error page (1997)
Viewing Changes (1998)
[WRITEFILE] to create database spider food? (1998)
FORMS: Returning a specific page (1997)
WebCat2: multiple currency support (1997)
Disappearing records (2002)
[ShowNext] feature in 2.0 (1997)
Newbie: ASIP vs WebTen? (2000)
WebCat2b15MacPlugin - [protect] (1997)