Re: Nested search index

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 26013
interpreted = N
texte = >I believe this was discussed here some time ago, but I can't find a >mail about [index] in nested searches: > > [search 1...] > [founditems] > [search 2...] > [founditems] > [index] > [/founditems] > [/search] > [/founditems] > [/search] > >I need the [index] values of the inner search context. [search 2...] >returns the correct records and fields, but displays the [index] of >the outer search.That's bizarre. Webcatalog is supposed to use the inner index values when inside the inner founditems context. Nevertheless, I think you can get around the problem like this:[math]count=0[/math][search 1 ...] [founditems] [text]searchString[index]=searchStringForSearch2[/text] [math]count=count+1[/math] [/founditems] [/search][loop start=1&end=[count]] [search 2 ... &searchString=[interpret][searchString[index]][/interpret]] [founditems] [index] [/founditems] [/search] [/loop]Of course, this assumes that in the looped searches, the [index] tag appearing inside the founditems context is interpreted as the founditems index and not the loop index. But based on the results of your earlier experience, I wouldn't bet on it, so please let us know what your results are if you test this example ...================================ Kenneth Grome, WebDNA Consultant 808-737-6499, http://webdna.net ================================------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Nested search index (Will Starck 2000)
  2. Re: Nested search index (Peter Ostry 2000)
  3. Re: Nested search index (Kenneth Grome 2000)
  4. Nested search index (Peter Ostry 2000)
>I believe this was discussed here some time ago, but I can't find a >mail about [index] in nested searches: > > [search 1...] > [founditems] > [search 2...] > [founditems] > [index] > [/founditems] > [/search] > [/founditems] > [/search] > >I need the [index] values of the inner search context. [search 2...] >returns the correct records and fields, but displays the [index] of >the outer search.That's bizarre. Webcatalog is supposed to use the inner index values when inside the inner founditems context. Nevertheless, I think you can get around the problem like this:[math]count=0[/math][search 1 ...] [founditems] [text]searchString[index]=searchStringForSearch2[/text] [math]count=count+1[/math] [/founditems] [/search][loop start=1&end=[count]] [search 2 ... &searchString=[interpret][searchString[index]][/interpret]] [founditems] [index] [/founditems] [/search] [/loop]Of course, this assumes that in the looped searches, the [index] tag appearing inside the founditems context is interpreted as the founditems index and not the loop index. But based on the results of your earlier experience, I wouldn't bet on it, so please let us know what your results are if you test this example ...================================ Kenneth Grome, WebDNA Consultant 808-737-6499, http://webdna.net ================================------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 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:

WebCat editing, SiteGuard & SiteEdit (1997) Multi-processor Mac info ... (1997) 2 passwords (2003) How do you hide [math]stuff[/math] (1997) web delivery (1997) webcat NT (1998) Performance Issue (2000) WebCat2: Items xx to xx shown, etc. (1997) Wanted: More Math Functions (or, Can You Solve This?) (1997) WebCat2.0 [format thousands .0f] no go (1997) Date search - yes or no (1997) Out of the woodwork (2007) [LOOKUP] (1997) Shopping Cart Deletion (2000) [isfile] ? (1997) [addlineitem] (1999) [WebDNA] Send results to more pages? (2011) Sending Email (2004) Which is Faster (1998) [WebDNA] Processor Maxing out (2010)