RE: Which [index]?

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13427
interpreted = N
texte = Steve:>Can WebCatalog handle a situation where there are nested [index]'s? I am a >little bit confused >because both [loop] and [founditems] both use have an optional context >named [index]. >Should this outline work? Example:Sure, WebCatalog knows which context to interpret [index] within, so the correct index numbers will show up in both the [loop] index and the [founditems] index - go ahead and try it.>AND, how do I call the loop [index] from within the >[founditems][/founditems] tags?Just set a [math] variable outside the [founditems] context, then refer to this variable inside it. Here's what I used:[loop start=1&end=3] index of loop: [index]
[search db=mydb.db&wonamedata=whatever] [founditems] Index of founditems: [index], [name], [math]urkel[/math]
[/founditems] [/search] index of loop (2nd time): [index]
[/loop]Hope this helps,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. RE: Which [index]? (Marc Eagle 1997)
Steve:>Can WebCatalog handle a situation where there are nested [index]'s? I am a >little bit confused >because both [loop] and [founditems] both use have an optional context >named [index]. >Should this outline work? Example:Sure, WebCatalog knows which context to interpret [index] within, so the correct index numbers will show up in both the [loop] index and the [founditems] index - go ahead and try it.>AND, how do I call the loop [index] from within the >[founditems][/founditems] tags?Just set a [math] variable outside the [founditems] context, then refer to this variable inside it. Here's what I used:[loop start=1&end=3] index of loop: [index]
[search db=mydb.db&wonamedata=whatever] [founditems] Index of founditems: [index], [name], [math]urkel[/math]
[/founditems] [/search] index of loop (2nd time): [index]
[/loop]Hope this helps,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Marc Eagle

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:

Credit card types (1997) CommandSecurity? (1997) For those of you not on the WebCatalog Beta... (1997) Searchable mail archive problems (2003) Hosted on Cobalt Linux (2001) [WebDNA] OT: gmx.com (2009) Database Upload (2000) Secure Server (1997) Creating main- and sub-category search (1997) Locking up with WebCatalog... (1997) Re2: Calculating multiple shipping... (1997) Country & Ship-to address & other fields ? (1997) [WebDNA] WebDNA 6.1 Info (2008) Bug or syntax error on my part? (1997) spook tcpconnect? (1999) Multiple security dbs (1997) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) RE: E-mailer error codes (1997) Stopping bad HTML propagation ? (1997) More than one db with the same namn (was: WC2f3) (1997)